[OJB-developers] Ojbgen code generator
Brought to you by:
thma
From: Hoang, H. <Hai...@co...> - 2002-05-30 04:54:31
|
I've some code that read the repository.xml and generate java code for the following pattern from previous project (ATG) and now I want to port over to OJB and donate it to the ojb community. For example, if I have a class descriptor and these are classes will be generated: User (interface) UserImpl (class) UserManager (interface) UserManagerImpl (class) 1. I would like to know, which class parses the repository.xml for information purposes only (without validation), so I can use the information in the repository to generate code. 2. Can we possibly add a <interface.name>com.xyz.Permission</interface.name> tag to the class descriptor along with <class.name>com.xyz.PermissionImpl</class.name>? 3. Can I reuse the metadata package to store the parsed information from the repository.xml without required runtime classes? for example, if I have a <class.name>com.xyz.PermissionImpl</class.name> in one of my class descriptor and the file is not yet genereated, will this causes me problem? Thank you, Hai |