Simple Hibernate question

F

fishfry

Can you use Hibernate with an existing database? Or does Hibernate
create all the tables it needs to, and you are not supposed to mess with
the db yourself?
 
B

Bryce

Can you use Hibernate with an existing database? Or does Hibernate
create all the tables it needs to, and you are not supposed to mess with
the db yourself?

Hibernate works great with an existing database.
 
N

Nic

fishfry said:
Can you use Hibernate with an existing database? Or does Hibernate
create all the tables it needs to, and you are not supposed to mess with
the db yourself?

Hibernate uses existing tables. It does not create tables.
You have to create POJO classes to create Hibernate classes.
Bye,
Nic
 
A

Adam Maass

Nic said:
Hibernate uses existing tables. It does not create tables.
You have to create POJO classes to create Hibernate classes.
Bye,
Nic

Actually, up to you. You can use Hibernate against an existing schema, or
you can have it (or rather, some tools) generate the schema for you.

-- Adam Maass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top