R
Rich
Hi,
I have some @Entitys in JPA with Hibernate which create the following
relationship:
Brand 1<->* User
User 1<->* CreditCard
(where 1<->* means a bidirectional one-many relationship)
I want to be able to put a constraint on the CreditCard entity such
that the field CreditCard.CreditCardNumber is unique for a particular
Brand.
Without adding a reference to Brand in the CreditCard entity, is there
a way that I can achieve this?
Thanks in advance for any pointers!
Rich
I have some @Entitys in JPA with Hibernate which create the following
relationship:
Brand 1<->* User
User 1<->* CreditCard
(where 1<->* means a bidirectional one-many relationship)
I want to be able to put a constraint on the CreditCard entity such
that the field CreditCard.CreditCardNumber is unique for a particular
Brand.
Without adding a reference to Brand in the CreditCard entity, is there
a way that I can achieve this?
Thanks in advance for any pointers!
Rich