Re:Java Plugin / JavaClass.vm

"gdilem\@libero\.it" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
After u have generated hbm.xml files with middlegen , use hbm2java .It's an hibernate command ...have a look to hibernate documentation
Giovanni

---------- Initial Header -----------

From      : [email protected]
To          : [email protected]
Cc          : 
Date      : Mon, 30 Aug 2004 10:48:55 -0400
Subject : [Middlegen-user] Java Plugin / JavaClass.vm

> Hello,
> 
> I use Middlegen to generate xml file for hibernate out of a database schema.
> I would also like to generate Java source class with setters and getters for every database table from the database schema.
> 
> The following is how I am doing this:
> 
> I am using a java plug in.
> I wrote a small template.
> 
> Is this the right way to do this?
> 
> If yes, here is my problem:
> 
> Only the context objects $table and $tables are available. It would be nice to have
> a $javaTable in the context to know which Java types to use to generate the Java class.
> 
> For now I am hard coding this information in the template and I do not feel that it is the right thing to do...
> 
> Can any one guide me in the right direction? I have attached the template I started.
> 
> Thanks
> 
> Mario Laureti
> 
> 
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.