-->
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.  [ 7 posts ] 
Author Message
 Post subject: database design or class design
PostPosted: Thu Dec 09, 2004 1:43 am 
Beginner
Beginner

Joined: Thu Dec 02, 2004 4:49 am
Posts: 32
Hello,

As Hibernate automatically creates tables based on our mapping, don't we need to design the database?
If we need, why?
also, which one we need to design first? should we desing database first or classes first?

Thanx in advance,
SSSS


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 3:25 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
http://www.hibernate.org/102.html

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 3:34 am 
Beginner
Beginner

Joined: Thu Dec 02, 2004 4:49 am
Posts: 32
That was a good link...but i want to know what is the best practice when we are starting a complete new application?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 3:40 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
schema export (especially schema update) depends on jdbc driver quality
if you are sure you have a very good jdbc driver and you are going to model your app the oo way, start from java classes (after a good uml design).
if your team is more db oriented, well just make sure they build a non broken schema.

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 5:53 am 
Beginner
Beginner

Joined: Thu Dec 02, 2004 4:49 am
Posts: 32
So...is there nothing like best practice for this? Does it only depend on whehter i have good class design team or good db design team?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 12:02 pm 
Beginner
Beginner

Joined: Thu Dec 02, 2004 4:49 am
Posts: 32
i have just started writing an application. I know only the requirements...i have the liberty of designing classes and tables in a manner i like..but i have no clue where to start....what is the standard practice?

Database first or classes first or simultaneous?

As I am using Hibernate for the first time, i am a bit confused...
plz help...

Thanks,
SSSS.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 12:41 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
This is a bit like asking is COBOL beter than Java better than C++. It all depends. There is nothing instrinsically making one better than the other. They all have strengths and weakness.

I understand that people new to a given subject like "black and white" and "this or that" type unequivocality. But questions like "best practice" in programming have, by nature, multiple "correct" answers.

Personally, I always grew the java domain model and database models in tandem. But I have a very strong database background and feel comfortable manually setting up database objects.

So in short, it depends. The best answer is probably which ever way you feel most comfortable.


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