-->
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 1, 2, 3  Next
Author Message
 Post subject: Annotation support in Hibernate3.0a
PostPosted: Thu Dec 16, 2004 8:24 am 
Beginner
Beginner

Joined: Wed Oct 08, 2003 6:34 am
Posts: 29
In the roadmap they mention support for JSR-175, and I have found some mails in the dev list talking about Java annotations support in Hibernate as an alternative for mapping files. Is this support available in Hibernate3.0a? Is there any way to test/use this functionality right now?

Best regards
Jose


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 10:12 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
check hibernate-tools project


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 11:00 am 
Beginner
Beginner

Joined: Wed Oct 08, 2003 6:34 am
Posts: 29
Where can I find it? I have checked the web, , the hibernate3.0 jar and files in sourceforge...

Thanks, regards
Jose


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 11:10 am 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
As far as I know it isn't supported, in the 3.0 alpha version anyway. Or, if it is, it isn't documented yet.

You might want to take a look at the EJB 3.0 preview that is available on JBoss's Web site. Their implementation of EJB 3.0 entitiy beans is based on Hibernate and uses annotations.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 11:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
only in cvs now, there is no release yet


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 11:40 am 
Beginner
Beginner

Joined: Wed Oct 08, 2003 6:34 am
Posts: 29
I know the risks of making such a question, but...

any planned release date?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 12:49 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I don't see annotations mentioned in the docs in the latest CVS version, so, I'm guessing that now is a little too early to try to get that working...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 9:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The next H3 release will be beta 1 and there will be a alpha release of annotations. Very soon - see development list for discussions.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 8:05 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Actually, it's already usable. I'm only working on minor better support of the EJB3 spec.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 11:47 am 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
So, are the annotations Hibernate specific annotations, or, are they just the EJB 3 annotations? I still don't see any documentation for them. Am I missing something, or, is that going to be in a different download?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 12:22 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Right now I covered EJB3 annotations only, since EJB3 match 95% of real life cases. The goal is to be EJB3 compliant and add specific ones for uncovered features.

It will be in the HibernateExt download, I think.
For now just take HibernatExt from CVS and check the metadata package
The early doc is here http://cvs.sourceforge.net/viewcvs.py/hibernate/HibernateExt/metadata/doc/tutorial/

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 12:30 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Thanks for the info, much appreciated. Does this mean that you can use EJB 3 Entity Beans without an application server? i.e. I can use it in a standalone application and I don't need JBoss?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 12:34 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes. You can use the ORM related annotation and API outside of a container.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 12:38 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Awesome, looking forward to it's release...


Top
 Profile  
 
 Post subject: EJB 3.0 support
PostPosted: Mon Dec 27, 2004 3:50 am 
Newbie

Joined: Sun Dec 26, 2004 4:39 pm
Posts: 14
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 ?

Thank you.


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 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.