Add lazy attribute to class tag
-------------------------------
Key: HIB-72
URL: http://jira.andromda.org/browse/HIB-72
Project: Hibernate Cartridge
Type: New Feature
Versions: 3.0RC1
Reporter: Peter Wyngaard
Assigned to: Martin West
It would be nice to be able to set the 'lazy' attribute of the Hibernate
'class' tag to true.
I have a many-to-one relationship from a "Document" entity to a "ClobStore"
entity which stores multiple Clob fields for a given document. This was
encouraged by the DBA on the project so that he could "do the right thing" in
the database.
Anyway, there are many scenarios where I don't want the Clobs to be loaded when
I load a Document. So, I need two things:
1. Turn off outer join fetching on queries
2. Enable lazy loading of the Clobs
#1 was easy to set up using the @andromda.hibernate.outerjoin tagged value on
the association ends.
The only way I know of to implement #2, for a many-to-one relationship, is by
setting the 'lazy' attribute to 'true' on the 'class' tag in ClobStore.hbm.xml.
Problem is, can't do that in AndroMDA (yet)!
Sound like a good idea to add an @andromda.hibernate.lazy tagged value to
Entities?
Thanks,
Peter
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel