Announcement Announcement Module
Collapse
No announcement yet.
Hibernate POJO mapped to Database View doesnt have ID Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate POJO mapped to Database View doesnt have ID

    Wondering how to leverage hibernate pojo mapped to database view as satabase view doesnt have ID i.e. primary key

    That means the pojo doesnt have ID.

    I will be using the values in the pojo to generate JSF h:dataTable with ID value as the link , so that when users click on the ID link it will populate the remaining fields on the form

    Any pointers/suggestions will be highly appreciated

  • #2
    I'm not sure I understand the problem. You're retrieving an item which doesn't have PK but you want to use it's PK?
    Last edited by karldmoore; Aug 27th, 2007, 04:27 PM.

    Comment


    • #3
      Thats right

      Comment


      • #4
        Err you can't . I don't understand, if it doesn't have a PK then it doesn't. What you need to do is find something you can use as the PK. Is there nothing unique at all about this data. I really don't understand what you are trying to do.
        Last edited by karldmoore; Aug 27th, 2007, 04:27 PM.

        Comment

        Working...
        X