Results 1 to 3 of 3
  1. #1
    unknownuser is offline Member
    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    Default Problem fecthing data using hibernate as table is having no primary key

    Hi ,

    I am facing problem while using hibernate 3.I am trying to fetch data from a table with where clause.The query is bringing three rows which is right and is according to my requirement ,but all three rows coming are same.h

    However all three are having different data.
    Table is not having primary key.It has 3 column as composite unique key.

    I have done the mapping in hbm.xml for the composite key but problem is not being solved.

    Please help ,it's urgent

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: Problem fecthing data using hibernate as table is having no primary key

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,083
    Rep Power
    4

    Default Re: Problem fecthing data using hibernate as table is having no primary key

    Quote Originally Posted by unknownuser View Post
    Please help ,it's urgent
    Its only urgent to you, using it as an argument to get preferred treatment only makes people LESS inclined to help you. Don't do that, in any forum.

    And if you want help you'll have to spill the beans as they say. Post the entities and the XML so we can have a look, be sure to sure to use the advanced post editor so you can format the code. Also, which error are you getting?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Putting data into table - BIG PROBLEM
    By denonth in forum New To Java
    Replies: 1
    Last Post: 01-13-2011, 10:51 AM
  2. Rich data table problem
    By learner23 in forum New To Java
    Replies: 1
    Last Post: 11-11-2010, 06:23 PM
  3. Problem retrieving data to JSP from Bean [using Hibernate]
    By linking90 in forum JavaServer Pages (JSP) and JSTL
    Replies: 11
    Last Post: 09-09-2010, 05:50 PM
  4. Hibernate table not found
    By orchid in forum JDBC
    Replies: 2
    Last Post: 05-06-2007, 07:44 AM

Tags for this Thread

Posting Permissions

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