[hibernate-dev] Hibernate JPA modelgen issue with @Embedded and @OneToOne

Guillaume Smet guillaume.smet at gmail.com
Wed Mar 7 05:57:31 EST 2012


Hi,

Yesterday, we tried the following mapping:
EntityA {
      @Embedded
      private EntityB entityB;
}

EntityB {
       @OneToOne
       private EntityC entityC;
}

In this configuration, and only with a @OneToOne, Hibernate JPA
Modelgen doesn't generate the attribute for entityC in EntityB_ (the
rest of our mapping is correctly generated, simple attributes,
@ManyToMany..., we only have this problem with all our @OneToOne
attributes in our @Embeddable entities).

I don't know if it's something obvious/not supported or if we should
find some time to work on a test case. Ping me if we should.

Thanks for the feedback and have a nice day.

-- 
Guillaume



More information about the hibernate-dev mailing list