0

Actually I want to use Joda-Time to store dates in my database (Postgresql) like it's described in this thread or this one.
I use JSF running on Glassfish (3.1.2.2).
My problem is, I don't know how to use the converter for EclipseLink. EclipseLink is already shipped and bundled in Glassfish.
How can I access eclipseLink from my IDE (Netbeans)?
Any other suggestions? thanks.

Community
  • 1
  • 1
codyLine
  • 509
  • 2
  • 8
  • 26
  • Why would you use some EclipseLink specific "Converter" when JPA 2.1 has standardised "AttributeConverter"? – Neil Stockton Apr 20 '15 at 16:27
  • JPA 2.1 is part of EE 7 and therefore not fully integrated with EE 6 GF 3.1.2.2. Could you be more specific? – codyLine Apr 20 '15 at 16:36
  • @codyLine: you asked two questions: about conversion (What is the reason you don't know how to use it? The linked blog clearly describes how to use EclipseLink converter I guess) and access to EclipseLink (Are you missing EclipseLink's dependencies? Is the converter class not recognized by IDE?) – wypieprz Apr 21 '15 at 19:32
  • @wypieprz: EclipseLink is shipped with Glassfish as a module. With other words, it lives as a bunch of jar files inside a directory of Glassfish. I have no access to it from my IDE. – codyLine Apr 21 '15 at 20:56
  • According to [EE 6 GF 3.1.2.2 Release Notes](https://glassfish.java.net/docs/3.1.2.2/release-notes.pdf#page=10&zoom=auto,60,159) it supports JPA 2.0 and most likely EclipseLink 2.3.2. Are you using Maven in your NetBeans project? If yes, just add the dependency to make it accessible. – wypieprz Apr 21 '15 at 21:40
  • I'm not using Maven but I'll give it try. Thanks @wypieprz – codyLine Apr 22 '15 at 08:51

0 Answers0