Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Mapping Joda Interval(Aggregation of 2 columns)
Mapping Joda Interval [message #1063170] Wed, 12 June 2013 14:15 Go to next message
Fabien Charlet is currently offline Fabien CharletFriend
Messages: 1
Registered: July 2009
Junior Member
Hello everyone !

I am stating a new project and I defined Interval attributes on some classes.

I am googling for a moment, but I don't find anything helping.

I have found a google code project to map a DateTime but nothing about an Interval.

I didn't found how to set up a custom mapping with two columns (start + end) mapped into one object (Interval).

Did someone have a clue ?

Thanks !
Re: Mapping Joda Interval [message #1064276 is a reply to message #1063170] Tue, 18 June 2013 14:15 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You could map it as an Embeddable, or use property access to map it as two different date properties (with gets/sets), or you could use a @Transformation mapping.

James : Wiki : Book : Blog : Twitter
Previous Topic:org.eclipse.persistence.annotations.CacheInterceptor
Next Topic:SetFirstResult and setMaxResult problem if exist @OneToMany relation
Goto Forum:
  


Current Time: Sat Nov 29 07:54:50 GMT 2014

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

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