Re: Mapping class to multiple tables with entity-name (hibernate plugin)
Marcin ZajÄ…czkowski <[email protected]> Wed, 21 Mar 2007 14:27:41 +0100
| Newsgroups | gmane.comp.java.xdoclet-plugins |
|---|---|
| Message-ID | <[email protected]> |
Konstantin Priblouda wrote:
(...)
>> 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.
Sure, thanks for point it out.
I added check if classTag is null and only then classTag is fetched from
class. That works properly.
Btw, is there a simply way to add an empty line in .hbm?
> Do not forget to add unit test to cover this feature.
I think this feature can be useful for others. This weekend I will try
to download sources from CVS repository, add tests and put patches into
JIRA.
Thanks for your help
Marcin
-------------------------------------------------------------------------
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