Results 1 to 2 of 2
  1. #1
    nayal_java is offline Member
    Join Date
    Jul 2010
    Posts
    24
    Rep Power
    0

    Default Problem in mapping multiples databse tables with same schema to single pojo class

    I hava a pojo class in which I am using Hibernate annotation.
    In my database I have two tables with similiar schema.
    I want to know whether there is any way in hibernate annotation so that same pojo class can be used for these two tables.
    Please suggest me how to do it.

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

    Default Re: Problem in mapping multiples databse tables with same schema to single pojo class

    Well check the very rich Hibernate documentation and find out!
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 0
    Last Post: 08-02-2013, 09:11 AM
  2. Creating POJO that will generate DB schema
    By lilhoot in forum New To Java
    Replies: 0
    Last Post: 05-17-2013, 08:02 PM
  3. XSD Schema to MySql Tables
    By shellrandhawa in forum XML
    Replies: 0
    Last Post: 09-27-2010, 02:49 AM
  4. Replies: 0
    Last Post: 03-15-2010, 09:14 PM
  5. mapping java class with xml
    By k2kcall in forum XML
    Replies: 0
    Last Post: 03-27-2009, 09:11 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
  •