Hello Jan.

Jan Labrie wrote:
> 
> Hello,
> 
> We are looking for a cartridge that generates POJO's with JPA Annotations. 
> 
> Is this feature planned for the Hibernate cartridge?
> 
Yes, JPA Annotations are planned for the Hibernate Cartridge. But I don't
know when I can realize this issue.


Jan Labrie wrote:
> 
> Adding this feature to the Hibernate cartridge might raise the design
> issue of distinguishing between the standard JPA annotations and Hibernate
> specific ones.
> 
> Only using standard annotations would make the generated code usable for
> other JPA implementations, like OpenJPA and TopLink, right?
> 
Yes, you are right, there are two different ways to realise this issue. 

* The first is just to extend the Hibernate Cartridge, so it can generate
xml-mappings or JPA-annotations.
In this case we could use the existing Hibernate profile. The
JPA-annotations could be realized as a feature with the new feature
configuration capabilities of oAW 4.2.

* On the other hand we are thinking about a JPA-Cartridge. In this case a
new JPA-profile is needed. The benefit is, that Hibernate would be, as you
say, only one possible implementation.This solution is more complex as the
first solution. Also an adapter for the existing Hibernate Cartridge is
needed. And a mechanism for adding Hibernate (or Toplink, or ...) specific
properties to the JPA Profile is needed.

What is the opinion of the users?
What is needed?
And who wants to help to realize this issues :-)

Any comment is desired.

-- 
Darius
-- 
View this message in context: 
http://www.nabble.com/JPA-Annotations-and-the-Hibernate-Cartridge-tf4882218s17564.html#a13992405
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to