-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: EJB 3.0 support
PostPosted: Mon Dec 27, 2004 5:48 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
graysonpierce wrote:
I want to make sure I understand this. EJB 3.0 support has been added to Hibernate (IE the JBoss implemention and standalone) but not to the Extension correct? In other words is it possible to automatically generate EJB 3.0 code with hbm2java ?


Happy you asked, you did not understand ;-)
I don't know what you mean by Extension. What I mean, is that there is not yet specific annotations for Hibernate to enhance the EJB3 subset.
No it is not possible to geenrate EJB3 code with hbm2java, I don't think this is a good idea actually.
The typical use case is:
- you create your annotated java classes
- you use hibernate (there is no hbm involved at all here)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 7:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we will have a hbm2java for H3 that does this

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 7:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
....and it is a very good idea (very easy for people to migrate back and forth then ,)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 02, 2005 11:32 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Can someone tell me if the schemaexport Ant task will be updated to work with annotations?

The other thing that I'm wondering is if there will be EJB interfaces which are equivalent to org.hibernate.SessionFactory, org.hibernate.Session , etc., but, implementation independent that will work in stand-alone mode? The tutorial shows it just using the Hibernate interfaces.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 02, 2005 11:37 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I think what I'm wondering is where the EntityManager interface is that is mentioned in the EJB spec... (still need to finish reading about it)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 5:00 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
In ejb-api.jar.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 5:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
schemaexport should be trivial to upgrade to run with annotations (as soon as "someone" defines how to look up the classes - e.g. by mentioning the classes in some file.)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 9:14 am 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I don't seeem to have an ejb-api.jar. Can you tell me where I would find it?

I do have the following file which has the annotations in it, but, there isn't an EntityManager.

C:\HibernateExt\ejb-api\build\jar tf ejb-3.0-edr1.jar
META-INF/
META-INF/MANIFEST.MF
javax/
javax/ejb/
javax/ejb/AccessType.class
javax/ejb/AssociationTable.class
javax/ejb/Basic.class
javax/ejb/CascadeType.class
javax/ejb/Column.class
javax/ejb/Dependent.class
javax/ejb/DependentAttribute.class
javax/ejb/DependentObject.class
javax/ejb/DiscriminatorColumn.class
javax/ejb/DiscriminatorType.class
javax/ejb/Entity.class
javax/ejb/EntityType.class
javax/ejb/FetchType.class
javax/ejb/GeneratorTable.class
javax/ejb/GeneratorType.class
javax/ejb/Id.class
javax/ejb/Inheritance.class
javax/ejb/InheritanceJoinColumn.class
javax/ejb/InheritanceJoinColumns.class
javax/ejb/InheritanceType.class
javax/ejb/JoinColumn.class
javax/ejb/JoinColumns.class
javax/ejb/ManyToMany.class
javax/ejb/ManyToOne.class
javax/ejb/OneToMany.class
javax/ejb/OneToOne.class
javax/ejb/SecondaryTable.class
javax/ejb/SecondaryTables.class
javax/ejb/SequenceGenerator.class
javax/ejb/Serialized.class
javax/ejb/Table.class
javax/ejb/TableGenerator.class
javax/ejb/Transient.class
javax/ejb/UniqueConstraint.class
javax/ejb/Version.class
META-INF/license.txt


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 9:27 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://jboss.org/products/ejb3 and follow JBoss' CVS.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 10:56 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
jemiller wrote:
I think what I'm wondering is where the EntityManager interface is that is mentioned in the EJB spec... (still need to finish reading about it)

We've not yet work on this thin wrapper. But check the APIs, they're quite the same.
We are focused on annotation support.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 2:27 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Thanks for the info. Can you tell me if EntityManager will be included in the release version of Hibernate 3.0?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 2:33 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
EJB3 APIs will be implemented as part of the EJB3 products at JBoss. Hibernate3 will be part of this, but I don't think the Hibernate 3.0 distribution needs the ejb3-api.jar. The dependency is in the other direction.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 2:41 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Is it possible to use the EntityManager without the application server? i.e. in a stand-alone application? I want to use it in a stand-alone application, but, I want to use the EJB defined APIs if I can manage it. This way I'm not tied to a particular implementation.

The other thing that I'm wondering is that I heard that EJB 3.0 entity beans will likely eventually be included in J2SE. If so, is it still going to be called EJB, or, are they going to rename it to something else? I know this isn't really a Hibernate question, but, I'm just curious if you might have some inside information...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 2:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, the JSR-220 spec is being written in two parts. It will be permissable to implement just the EJB 3.0 Persistence part without the rest of the spec. We will deliver an EJB 3.0 Persistence implementation as a separate download (call it something like "JBoss EntityManager"), which will basically be a fairly minimal wrapper around hibernate3.jar and hibernate-annotations.jar.

There is no plan to include an EJB3 implementation in J2SE. However, it will of course be possible to use EJB 3.0 Persistence outside the context of J2EE (just like JMS today).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 2:54 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Great! Thanks for the info.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.