[Hibernate] Mixing column and formula
Hi guys, Have you ever seen a mix and match between formulas and columns in a mapping. property type=MyType column name=foo length=4/ formulafoo2 + bar//formula /property This complexify the annotations (user experience, not the binding code), so I'm wondering whether I should allow this kind of structure or not. Emmanuel ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tlchargez cette version sur http://fr.messenger.yahoo.com --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel
RE: [Hibernate] Mixing column and formula
Title: [Hibernate] Mixing column and formula yes -i remember some mapping support case that had this. Just cant remember the case ;) /max From: [EMAIL PROTECTED] on behalf of Emmanuel BernardSent: Thu 16-06-2005 20:31To: hibernate-devel@lists.sourceforge.netSubject: [Hibernate] Mixing column and formula Hi guys,Have you ever seen a mix and match between formulas and columns in amapping.property type="MyType" column name="foo" length=4/ formulafoo2 + bar//formula/propertyThis complexify the annotations (user experience, not the binding code),so I'm wondering whether I should allow this kind of structure or not.Emmanuel ___Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! MessengerTlchargez cette version sur http://fr.messenger.yahoo.com---SF.Net email is sponsored by: Discover Easy Linux Migration Strategiesfrom IBM. Find simple to follow Roadmaps, straightforward articles,informative Webcasts and more! Get everything you need to get up tospeed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click___hibernate-devel mailing listhibernate-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/hibernate-devel
Re: [Hibernate] Mixing column and formula
On Jun 16, 2005, at 8:31 PM, Emmanuel Bernard wrote: This complexify the annotations (user experience, not the binding code), so I'm wondering whether I should allow this kind of structure or not. Also check: http://opensource.atlassian.com/projects/hibernate/browse/ HHH-539 Yep, used it recently for a customer who had a composite primary key with some fields also part of a composite foreign key (would need duplicate column mapping): set name=feeAssociations lazy=true cascade=none table=RP_FEE key column name=RP_ID / column name=PROP_ID / /key composite-element class=FeeAssociation many-to-one name=feeElement class=com.test.FeeElement column name=FEE_ID/ formulaPROD_ID/formula /many-to-one property name=feeInclusiveSetting column=FEE_INCL_CD / /composite-element /set It's used as a literal join condition. --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel