1 Reply Latest reply on Feb 26, 2009 1:58 PM by Julien Kronegg

    Problem seam-gen reverse engineer mysql database?

    philip andrew Newbie

      Hi,


      I have two mysql tables, user and staff.
      On my user table I have three foreign keys, social_security_assistance_confirmed_by_staff_id, approved_by_staff_id, rejected_by_staff_id, all reference staff.id.


      I seam-gen with seam generate-entities and one problem is it makes my UserHome class wrong with:


      @Name("userHome")
      public class UserHome extends EntityHome<User> {
           @In(create = true)
           StaffHome staffHome;
           @In(create = true)
           StaffHome staffHome;
           @In(create = true)
           StaffHome staffHome;




      That does compile, how come? how to fix?


      Thanks, Philip