As far as I am aware, JPA does not have the ability to register custom property types - it's just not in the spec.
It's a baffling design decision, and means you have to keep dropping back into Hibernate annotations to achieve what you need. Thomas Hamacher wrote: > Hi @all, > > does anyone know, if there is a chance to use the joda time library as > the default date-implementation with ejb3? > > I´m currently facing the following problem. I would like to use the > DateTime objects of the joda library within my ejb3-entities instead of > using the plain, old and buggy java.util.Date implementation. If I > simply replace the object-types all DateTime-objects are stored in the > database as VarBinary. But I would like to use them as a timestamp or > date sql-type. > > I saw, that there is a subproject from joda, that uses the @Type > annotation from hibernate to convert them to different SQL-Types. But > until now I´m absolutely independent from any persistence-framework, > because I simply rely on the javax.persistence-standard, so I would not > prefer to mix it now with any hibernate-specific annotations. > > But maybe there is something similiar, so I can use it anyway. > > Does anyone know of a good solution to this problem? > > Thanks for your answers > Thomas > > -- > > _____________________________________ > > Dipl.-Inform. (FH) Thomas Hamacher > Freiberuflicher Wirtschaftsinformatiker > > Tel (CH): +41 (76) 21 24 872 > Email: [EMAIL PROTECTED] / [EMAIL PROTECTED] > WWW: http://www.project-team.de / http://www.project-team.ch > > ____________________________________________________________________________________________ > > Der Inhalt dieser E-Mail ist ausschliesslich für den bezeichneten Adressaten > bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen > Vertreter sein sollten, so beachten Sie bitte, dass jede Form der > Kenntnisnahme, > Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail > unzulässig ist. > Bitte setzen Sie sich in diesem Fall unverzüglich mit dem Absender der E-Mail > in > Verbindung. > > > > > -- > > _____________________________________ > > Dipl.-Inform. (FH) Thomas Hamacher > Freiberuflicher Wirtschaftsinformatiker > > Tel (CH): +41 (76) 21 24 872 > Email: [EMAIL PROTECTED] / [EMAIL PROTECTED] > WWW: http://www.project-team.de / http://www.project-team.ch > > ____________________________________________________________________________________________ > > Der Inhalt dieser E-Mail ist ausschliesslich für den bezeichneten Adressaten > bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen > Vertreter sein sollten, so beachten Sie bitte, dass jede Form der > Kenntnisnahme, > Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail > unzulässig ist. > Bitte setzen Sie sich in diesem Fall unverzüglich mit dem Absender der E-Mail > in > Verbindung. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
