Menu

#2 hibernate.composite-id class

open
nobody
None
5
2006-05-26
2006-05-26
jbchurn
No

Hi Petr,

I hereby sending you the sample project for your
reference in generating correct composite-id class in
for hbm.xml file.

Fyi, I'm using NetBeans 5.

The sample project does not have a web application to
run but with required classes in mypackage package.

Relationship is Staff (one-to-many) StaffSkill
(many-to-one) (Skill)

So, you just build (not need to run) the project and
you will notice the generated StaffSkill.hbm.xml file
contains "mypackage.StaffSkill.Id" which is wrong
because "Id" is a static class within the StaffSkill
class. So, expected result is "mypackage.StaffSkill$Id".

Discussion

  • jbchurn

    jbchurn - 2006-05-26
     
  • Petr Zajac

    Petr Zajac - 2006-05-26

    Logged In: YES
    user_id=885974

    thanks, I will look at it.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi,

    May I know if the mentioned feature will be available soon?

    Thanks!

     
  • Petr Zajac

    Petr Zajac - 2006-06-20

    Logged In: YES
    user_id=885974

    I am busy because I have a lot of work at Sun :(. And I
    wan't to migrate hibernate plugin to jboss cvs before coding
    new features. So, I don't know when I will integrate this
    feature.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.