Simple Hibernate question

Discussion in 'Java' started by fishfry, Jul 22, 2005.

  1. fishfry

    fishfry Guest

    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?
     
    fishfry, Jul 22, 2005
    #1
    1. Advertising

  2. fishfry

    Alan Krueger Guest

    fishfry wrote:
    > Can you use Hibernate with an existing database?


    Yes.
     
    Alan Krueger, Jul 22, 2005
    #2
    1. Advertising

  3. fishfry

    Bryce Guest

    On Thu, 21 Jul 2005 19:06:43 -0700, 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 works great with an existing database.

    --
    now with more cowbell
     
    Bryce, Jul 22, 2005
    #3
  4. fishfry

    Nic Guest

    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
     
    Nic, Jul 26, 2005
    #4
  5. fishfry

    Adam Maass Guest

    "Nic" <> 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
     
    Adam Maass, Jul 26, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ilias Lazaridis
    Replies:
    0
    Views:
    1,773
    Ilias Lazaridis
    Dec 27, 2004
  2. Replies:
    0
    Views:
    3,811
  3. jstorta
    Replies:
    1
    Views:
    11,850
  4. Eleanna Skouta
    Replies:
    2
    Views:
    8,513
    Arne Vajhøj
    Dec 9, 2008
  5. Amit Jain
    Replies:
    7
    Views:
    3,394
    Amit Jain
    Apr 27, 2009
Loading...

Share This Page