Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Table with two primary keys(hibernate persistence)

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Table with two primary keys(hibernate persistence)

    Hello..

    I am currently working on a program. Im using hibernate as persistence.
    Problem: I have a table in my database w/c has two primary keys, when the pojo was generated, the ID was put in a separate class. when I try to create a code that would persist data in that table with two primary keys, i could not find any way. I dont know how to deal with it because its my first time to encounter a table with two primary keys. Can anyone help me or give me a site that conduct a tutorial in dealing table with two primary keys using hibernate as persistence.

    PS: I am using SQLYOG as my database.
    I am using java.

    Thanks a lot.
    Last edited by jan_ed123; August 20th, 2010 at 03:43 AM. Reason: additional information.


Similar Threads

  1. List of shortcuts key for Eclipse
    By Flash in forum Java JDK & IDE Tutorials
    Replies: 3
    Last Post: July 18th, 2013, 09:40 AM
  2. auto-increment of primary key
    By hundu in forum Enterprise JavaBeans
    Replies: 1
    Last Post: May 15th, 2010, 11:55 AM
  3. Persistence causing problems with JButton 2D Array
    By easyp in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 21st, 2010, 01:21 PM
  4. Eclipse: How to use/edit shorcut keys.
    By Truffy in forum Java JDK & IDE Tutorials
    Replies: 3
    Last Post: December 3rd, 2009, 12:51 PM
  5. combining keys
    By subhvi in forum Java SE APIs
    Replies: 10
    Last Post: August 29th, 2009, 05:35 PM