Announcement Announcement Module
Collapse
No announcement yet.
hibernate problem : tables relations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hibernate problem : tables relations

    Hello every body,

    I've a big problem with hibernate like below :

    this.getHibernateTemplate().find("from r in class " + RecordVO.class + ", s in class "+StandardVO.class+
    " where r.recordId=s.recordId and "+
    " r.status='"+Constants.USED+"' and "+
    " add_months(r.lastUpdate, s.reviewPeriod) <= sysdate");


    I have two tables (RecordVO and StandardVO) ; this requests works very well but I just want access to the Records values and this method returns a List which contains an Object and I don't know how find my Record ?????

    Someone could help me ?

    Thans very much

    Franck

  • #2
    find will return a List of arrays of instances. Each object in the list is an array of objects.
    In your case, the array has two items / instances of type RecordVO and StandardVO.
    Please take a look at Hibernate documentation for more details.

    HTH

    Comment

    Working...
    X