-->
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.  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Annotation support?
PostPosted: Thu Dec 23, 2004 2:51 am 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Hi,

I just noticed that Hibernate 3.0 went beta. I am looking forward to annotation support to remove the need for XDoclet. Does anyone have an idea when this feature is going to make it in?

Thanks,
Gili


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 23, 2004 5:49 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Almost all EJB3 early draft annotations are already supported, but you have to get it from CVS, HibernateExt/metadata/. We'll release an alpha soon.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 23, 2004 6:00 am 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
christian wrote:
Almost all EJB3 early draft annotations are already supported, but you have to get it from CVS, HibernateExt/metadata/. We'll release an alpha soon.


Christian,

Where do I read the annotation specification and/or some tutorials on how to use this? Can you point me in the right direction?

Thank you,
Gili


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

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is a (short) tutorial in the directory in CVS, just do a checkout and have a look.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 23, 2004 1:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Feedbacks welcome (both code and doc, even if the doc is in early alpha stage)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 6:05 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Hello,
I try set last metadata project in eclipse (3.1M4, linux) - eclipse return more error dialogs (internal AST error) when I open org.hibernate.test.metadata.manytomany.Man.java in editor

What is problem ?

ps.
metadata compile fine with ant


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 7:45 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I know. Unfortunatly Eclipse is not *yet* Annotation compliant. I'm astonished, since this class is pretty simple.
You can use IDEA which works really well with annotations (I use it), or maybe netbeans 4 (haven't tested it).

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 1:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
AFAIK the latest 3.1. M4 should be able to handle annotations if you set the compiler to 1.5. compatibility....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 2:04 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Michael,
I have 3.1M4 and set 5.0 compatibility (there isn't 1.5 compatibilty) - I can't open Man.java,
Customer.java - eclipse return too many dialog with 'internal AST error)
Have you tried to open Man.java with 3.1M4 ?

Emmanuel
I haven't IDEA and netbeans haven't too good refactoring (netbeans 4.0 work with this files)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 2:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Michael, snpesnpe is right, Eclise screw up on my samples, I did test that with Max last week.
PS I was sceptikal on a non free IDE (was an happy eclipse user). I'm now a happy IDEA user and unhappy eclipse one when I need to get back. IDEA really worth the 500 bucks. I think you can try it for 30 days for free

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 2:49 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Anyone try it with Netbeans 4.0 yet?

Gili


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 3:40 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I try netbenas.It work (I can openMan.java and Customer.java and compile complete hibernateExt(, but netbeans have another problems (refactoring, open type hierarchy ...)

regards


Top
 Profile  
 
 Post subject: Eclipse and ManyToMany relation (Man.java)
PostPosted: Mon Dec 27, 2004 1:13 pm 
Newbie

Joined: Mon Dec 27, 2004 1:07 pm
Posts: 4
Location: Helsingborg, Sweden
Hi,

I tried this out with eclipse 3.1M4 and it works if you put the joinColumns before the inverseJoinColumns in Man.java

Regards,
/Tobias


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 1:51 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
OK, I've updated my box, thanks.
Someone can report this bug to the Eclipse core team, it's still a bug in their grammar.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 2:16 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Customer.java,Sky.java doesn't work, too


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 28 posts ]  Go to page 1, 2  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.