openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werewolf <>
Subject ManyToMany relations violating unique constraints
Date Tue, 04 May 2010 08:20:03 GMT

i am trying to build an API for my company, but i am facing problems:

my ERM looks like this:


actually i am just trying to insert some elements of InstanceItem using
i get a unique constraint violation for Parameter. i have chosen ManyToMany
because i want to "recycle" some parameters, becaused i wanted to avoid
redundancy. so multiple referencings to the same parameter are possible and
very normal for a M2M relation.

All data sets are identified by business logic (unique key constraint). 
so i do something wrong when i use em.merge(instanceItem); ?
my mapping file and persistence.xml is appended.

thanks for your help in advance


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message