Re: [Hibernate] Template for generating class per entity per association

2005-12-14 Thread Max Rydahl Andersen
On Tue, 13 Dec 2005 23:09:32 +0100, Gavin King [EMAIL PROTECTED]  
wrote:



For the Seam templates I need to be able to generate a class for every
many-to-one association of every entity. Currently what I am doing is
generating everything as inner classes. Is there some better way to do
that?


a class for every many-to-one, thats alot of classes ;)

But in any case you just do this:

$templates.create(seam/templateForManyToOne.vm, ${thenameyouwant}.java)

I added it in the early days but I haven't needed it yet, but the  
unittests says it works.


--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Template for generating class per entity per association

2005-12-13 Thread Gavin King
For the Seam templates I need to be able to generate a class for every
many-to-one association of every entity. Currently what I am doing is
generating everything as inner classes. Is there some better way to do
that?


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel