Results 1 to 2 of 2

Thread: Regarding @MappedSuperclass annotation

  1. #1
    Join Date
    Nov 2005
    Posts
    148

    Default Regarding @MappedSuperclass annotation

    Hi,

    i am using @MappedSuperclass annotation on the super class.It works f9 when i do insert operation in the DAO (as it inserts super class properties).But when i do find using "this.getHibernateTemplate().findByExample(baseCla ss)", It populates all Child Object Properties and not poplutaes super class properties.

    I put primarykey and createddatetime in super classs.But while searching, these properties are not populated.


    Anyone help?



















    Regards,
    shahzad
    Regards,
    Shahzad Ahsan
    Ooober Brain
    ooober.com

  2. #2
    Join Date
    Nov 2005
    Posts
    148

    Default solved

    Hi. it is solved . It was my fault. I was populating from one object to another Object through reflection using "object.getDeclaredMehtods()".And this could not get the Properties of super class.So i chaged it to "object.getMehtods()".
    Regards,
    Shahzad Ahsan
    Ooober Brain
    ooober.com

Posting Permissions

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