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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -