Re: Mapping class to multiple tables with entity-name (hibernate plugin)

Konstantin Priblouda <kpriblouda-/[email protected]> Mon, 19 Mar 2007 01:54:08 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>
--- Marcin Zajączkowski <[email protected]> wrote:

> I don't know xdoclet internal structure, but in fact
> it seems to be only 
> problem with second/next run for every
> class/entity-name definition, 
> because if entity-name is the first tag, hbm is
> correctly generated (for 
> that entity).

Template gobbles up first tag. 

> Would it be a really big hack to make that
> modification?

I would call this "significant" hack ;) 

> entity-name is commonly used e.g. in systems with
> change (history) logging.

Possible solution would be to modify template
( if this is acceptable to have both classes in same
hbm.xml ) to process both tags - as template is really
modular this would be not that difficult.

( dare to hack this? This would be
HibernateMappingPlugin.jelly,  add iteration for 
class inclusion with tag selection ) 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV