Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Setting a "unique-key" attribute on a many-to-one association using Eannotations w
[Teneo] Setting a "unique-key" attribute on a many-to-one association using Eannotations w [message #602333] Thu, 08 February 2007 06:34
Eclipse UserFriend
Originally posted by: Stephen.Egan.csiro.au

Hi,
Me again. Is there an EAnnotation I can use to set a "unique-key" =

constraint on two "many-to-one" associations in Hibernate? Basically, I=
=

want to generate a mapping similar to the following:

:
:
<many-to-one name=3D"roadGroupMembership" entity-name=3D"user_rgm" =

cascade=3D"merge,persist,save-update,lock,refresh" lazy=3D"false" =

insert=3D"true" update=3D"true" not-null=3D"false">
<column not-null=3D"false" unique-key=3D"user_rgm" =

name=3D"`membership_roadgroupmembership_id`"/>
</many-to-one>
:
:

<many-to-one name=3D"userAccount" entity-name=3D"UserAccount" =

cascade=3D"merge,persist,save-update,lock,refresh" lazy=3D"false" =

insert=3D"true" update=3D"true" not-null=3D"true">
<column not-null=3D"false" unique-key=3D"user_rgm" =

name=3D"`useraccount_useraccount_id`"/>
</many-to-one>
:
:

Thanks,
Stephen.
Previous Topic:[Teneo] IdentifierCacheHandler does not work for EObjects with hashCode implementations
Next Topic:[Teneo] Setting a "unique-key" attribute on a many-to-one association using Eannotations w
Goto Forum:
  


Current Time: Tue Oct 20 09:51:40 GMT 2020

Powered by FUDForum. Page generated in 0.02254 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top