-->
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: Is there a way to generate a db schema from objects
PostPosted: Mon Oct 24, 2005 12:54 am 
Newbie

Joined: Sat Sep 17, 2005 5:48 am
Posts: 9
I'm fairly familiar with generating xml mapping files and class from db schemas when it comes to using ORM and other code generators, howver i've heard that this is bad practive since the db is relational and cannot reflect behaviour like objects. So if this is true and I would love to hear any other thoughts on this, is there some way of being able to auto-generate a db schema, (tables and relationships in sql server 2000) based of the relationships that are setup in the xml mapping files. I reckon this would be amazing if possible since then it would remove this whole debate. I could develop my objects first, create the relationships and have a db schema created for me..

Any insights would be greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 10:14 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Use NHibernate.Mapping.Attributes and SchemaExport...
(read: http://nhibernate.sourceforge.net/nh-docs/html/NHibernate.Mapping.Attributes.html)

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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.