-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate persistence with minimum configuration
PostPosted: Fri Nov 10, 2006 11:28 am 
Newbie

Joined: Tue Aug 15, 2006 10:02 am
Posts: 9
Hibernate is a great persistence tool. Is it possible to favor so called “conventions” over configuration and cut the size of configuration files. For example is it possible to achieve following

1- I just provide hibernate main configuration file that provides minimum critical configuration along with the objects that I want to persist.
2- I just write my domain classes (classes that I want to persist) and persistence classes using hibernate. I want hibernate to create the mapping files, database schema if needed (I know it does create schema).

Thanks for help.

Faikeeyes


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 12:07 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Annotate your domain classes and use Hibernate Tools to generate mapping files. Or annotate and use JPA.


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