Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Simple Hibernate question

Reply
Thread Tools

Simple Hibernate question

 
 
fishfry
Guest
Posts: n/a
 
      07-22-2005
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?
 
Reply With Quote
 
 
 
 
Alan Krueger
Guest
Posts: n/a
 
      07-22-2005
fishfry wrote:
> Can you use Hibernate with an existing database?


Yes.
 
Reply With Quote
 
 
 
 
Bryce
Guest
Posts: n/a
 
      07-22-2005
On Thu, 21 Jul 2005 19:06:43 -0700, fishfry
<(E-Mail Removed)> wrote:

> 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.

--
now with more cowbell
 
Reply With Quote
 
Nic
Guest
Posts: n/a
 
      07-26-2005
fishfry wrote:
> 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
 
Reply With Quote
 
Adam Maass
Guest
Posts: n/a
 
      07-26-2005

"Nic" <(E-Mail Removed)> wrote:
> fishfry wrote:
>> 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


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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate LazyInitializationException in web application Struts asMVC, Spring as IOC and Hibernate as ORM layer Amit Jain Java 7 04-27-2009 10:27 AM
HIBERNATE - java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration Eleanna Skouta Java 2 12-09-2008 02:09 AM
Hibernate cannot find hibernate.cfg.xml jstorta Java 1 01-19-2008 01:45 PM
Hibernate Syncronizer now generates code for Hibernate 3.0 msenin@covad.net Java 0 07-14-2005 05:47 AM
[HIBERNATE] [EVALUATION] - Gavin King Censors Hibernate Forum Ilias Lazaridis Java 0 12-27-2004 04:26 AM



Advertisments