--- Marcin ZajÄ
czkowski <[EMAIL PROTECTED]> wrote:
> Konstantin Priblouda wrote:
> > --- Marcin ZajÃâ¦czkowski <[EMAIL PROTECTED]> wrote:
> >> 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.
>
> It's even advised to keep it in a one file.
That's is cool.
>
> > ( dare to hack this? This would be
> > HibernateMappingPlugin.jelly, add iteration for
> > class inclusion with tag selection )
>
> I tried and I'm able to generate section for every
> class tag, but ...
> content is still for the first tag.
>
> @hibernate.class table = "ARCHIVED_CLASS"
> entity-name = "archived"
> @hibernate.class table = "CLASS"
>
> in .hbm there are two sections for entity named
> "archived".
>
> In HibernateMappingPlugin.jelly I have something
> like that:
>
> <j:forEach var="classTag"
>
items="${metadata.getTagsByName('hibernate.class')}">
> <j:import uri="/Class.jelly" inherit="true"/>
> </j:forEach>
>
> It looks like problem with passing value inside
> Class.jelly.
>
>
> Do you have an idea what could be wrong?
Of course ;)
Class.jelly takes first class tag of a class in
question. YOu should do like with query stuff -
set outside variable holding class tag in question,
and then use it in Class.jelly instead of tag
retrieval.
Do not forget to add unit test to cover this feature.
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
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
-------------------------------------------------------------------------
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
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest