java - How to write business objects with uses Bean Validation in JavaEE? -
i'm learning bean validation , in books recommended business objects should use bean validation , validation should count other layers in classic mutlitiered javaee application. means bean validation should implemented once. how should manage that?
lets have following layers in java application:
jsf-ui->controller->dto->ejb/cdi (with business objects)->dao->database
how controller in frontend should know validation occurs in logic layer in business objects?
Comments
Post a Comment