Announcement Announcement Module
Collapse
No announcement yet.
JSR-303 and Jdbc generated pojos Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSR-303 and Jdbc generated pojos

    Hi, I'm working on a project that uses jdbctemplate as data provider and in order to save some resources, I created a set of reflection based classes that scans pojos to offer in a generic way (not SQL should be manually created but if you wanted you are able to do it) the services provided by PagingAndSortingRepository interface for pojos implementing org.springframework.data.domain.Persistable, well it works fine, but I'm thinking about adding some validation to generated pojos.

    I read about the standard JSR-303 and the spring implementation but I try to find info about it and jdbc based generated pojos and didn't found any concrete example, I found some hibernate examples, well I want to know if I can use JSR-303 validation in my pojos just by including a org.springframework.validation.beanvalidation.Loca lValidatorFactoryBean or I need to create my own JSR-303 provider for this purppose or can I use hibernate validation provider (or other one) without any problem?

    Thanks
Working...
X