posted 16 years ago
Hi all,
Below I have a class name entity (name, address, type...)
The end-user provides some information but not all fields are mandatory.
Q: how can I have 'name' and 'address' to be mandatory but 'type' can be left out? (using annotation)
thanks!
@Validation
public class CustomizeAction extends BaseSupport
{
private Entity entity = new Entity();
.
.
.
public Entity getEntity()
{
return entity;
}
/// WHAT COMES HERE ?!?
public void setEntity(Entity entity)
{
this.entity = entity;
}