[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] how to impose a custom association
|
EclipseLink supports JPA 2.0, which allows for Bean Validation, using any
implementation of the Java Bean Validation specification.
You could also just add validation code to your set method.
simpatico_qa wrote:
>
> Something one could do with Hibernate, as shown here:
> http://agoncal.wordpress.com/2010/03/03/bean-validation-with-jpa-1-0/
>
> 2010/4/24 Gabriele Kahlout <gabriele@xxxxxxxxxxxxxxx>
>
>> and, btw, how to impose mandatory participation?
>>
>> 2010/4/24 Gabriele Kahlout <gabriele@xxxxxxxxxxxxxxx>
>>
>> Hello,
>>> Instead of a @OneToMany
>>> I'd like to impose a @Oneto7 association. How to do?
>>>
>>> --
>>> Regards,
>>> K. Gabriele
>>>
>>> --- unchanged since 25/1/10 ---
>>> P.S. Unless a notification (LON), please reply either with an answer OR
>>> with
>>> " ACK" appended to this subject within 48 hours. Otherwise, I might
>>> resend.
>>> In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
>>> this)
>>> ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
>>> ¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
>>>
>>> Also note that correspondence may be received only from specified a
>>> priori
>>> senders, or if the subject of this email ends with a code, eg.
>>> -LICHT01X,
>>> then also from senders whose reply contains it.
>>> ∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y,
>>> subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
>>>
>>>
>
>
-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://old.nabble.com/Fwd%3A-how-to-impose-a-custom-association-tp28350254p28379939.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.