Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2013
    Posts
    108
    Rep Power
    0

    Default Two entity classes

    As you know, in hibernate, there is a mapping file called <classname>.hbm.xml. So if we have two entity classes say employee and certificate then the file should be named ?

    1. Employee.hbm.xml
    2. Certificate.hbm.xml

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,346
    Rep Power
    6

    Default Re: Two entity classes

    What does the hibernate documentation say?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    kire9dk is offline Member
    Join Date
    Sep 2009
    Posts
    15
    Rep Power
    0

    Default Re: Two entity classes

    If you use the annotations then you do not need configuration files for every class, just tell to the hibernate which classes should be looked into.

Similar Threads

  1. How to set value to entity?
    By heart_throbber in forum New To Java
    Replies: 7
    Last Post: 03-04-2012, 02:13 PM
  2. jpa entity update
    By videanuadrian in forum Advanced Java
    Replies: 14
    Last Post: 06-14-2011, 05:18 PM
  3. Can I edit Entity Classes in netbeans
    By dilanka007 in forum New To Java
    Replies: 0
    Last Post: 01-16-2010, 01:53 AM
  4. PK for Entity beans
    By eva in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 07-17-2008, 11:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •