-->
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.  [ 5 posts ] 
Author Message
 Post subject: annotations, ant and hbm2ddl
PostPosted: Fri Jun 03, 2005 5:04 pm 
Newbie

Joined: Fri Jun 03, 2005 2:15 pm
Posts: 14
I am very new to hibernate annotations. I have some questions that I do not have any idea.

1) If we use hibernate annotations, do we still need to create the mapping files with some tool? If yes, what tool should we use? If use ant, what task is it?

2) If we use hibernate annotations, do we still can use hbm2ddl?

Thanks.

Wade


Top
 Profile  
 
 Post subject: Re: annotations, ant and hbm2ddl
PostPosted: Sun Jun 05, 2005 8:28 pm 
Newbie

Joined: Thu Oct 28, 2004 1:26 pm
Posts: 5
1) No, the annotations replace the Hibernate hbm.xml files. Just include the compiled class files in your classpath.

2) Yes, you definetely can still use hbm2ddl. You need the hibernate-tools stuff.


wadeyhan wrote:
I am very new to hibernate annotations. I have some questions that I do not have any idea.

1) If we use hibernate annotations, do we still need to create the mapping files with some tool? If yes, what tool should we use? If use ant, what task is it?

2) If we use hibernate annotations, do we still can use hbm2ddl?

Thanks.

Wade


Top
 Profile  
 
 Post subject: Thank
PostPosted: Mon Jun 06, 2005 10:32 am 
Newbie

Joined: Fri Jun 03, 2005 2:15 pm
Posts: 14
Juice, Thank you.

Wade


Top
 Profile  
 
 Post subject: Re: annotations, ant and hbm2ddl
PostPosted: Wed Jun 08, 2005 4:44 pm 
Regular
Regular

Joined: Thu Jul 08, 2004 1:21 pm
Posts: 68
Location: Recife - Pernambuco - Brazil
wadeyhan wrote:
2) If we use hibernate annotations, do we still can use hbm2ddl?

You will need to use hbm2dll only if you really want to get a dll file (create-my-database-sql, for instance). If not, Hibernate create/update database schema automatically for you.

valeuz...

_________________
Marcos Silva Pereira
http://blastemica.blogspot.com


Top
 Profile  
 
 Post subject: Cool
PostPosted: Wed Jun 08, 2005 6:29 pm 
Newbie

Joined: Fri Jun 03, 2005 2:15 pm
Posts: 14
That's cool. I will try it.

Thanks.

Wade


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

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.