RE: Struts+Hibernate many-to-many mismatch

2007-02-05 Thread Lance Semmens
:[EMAIL PROTECTED] Sent: 02 February 2007 23:55 To: commons-user@jakarta.apache.org Subject: Struts+Hibernate many-to-many mismatch Dears, I have 2 hibernate entities, user role, with many-to-many relation. I also use them as form beans. [code] public class User extends ValidatorActionForm

Re: Struts+Hibernate many-to-many mismatch

2007-02-03 Thread James Carman
Well, this should probably be asked on the Struts list. Here's what I would suggest, though. 1. Do not extend a view-layer class in your domain. User and Role should not extend any Struts-specific classes. 2. Create a new form bean class for this form called UserEdit or something. 3. Give

Struts+Hibernate many-to-many mismatch

2007-02-02 Thread Abbas Adel
Dears, I have 2 hibernate entities, user role, with many-to-many relation. I also use them as form beans. [code] public class User extends ValidatorActionForm { private int UID; private String username; private String password; private String name; private