I have classes Country <-1---------*- Town
andCode:public class Country extends BaseObject implements Serializable { protected String code; protected String name; // getters and setters }
All items of both classes are required. When I try to insert new item Town with parameters e.g.:Code:public class Town extends BaseObject implements Serializable { protected String postalCode; protected String name; protected Country country; // getters and setters }
[quotePseudocode: ]Town ['10010','New York', ''US''][/quote]
it is validated even whole class Country - so error is:
If I turn off validating the item Town is inserted properly.Country name is requred field.
Thanks in advance


Reply With Quote