java - Hibernate vs EclipseLink -
i'm starting new web project , i've chosen jpa persistence orm engine.
although i've used openjpa in last project, want use eclipselink.
why? jpa reference implementation, has lot of documentation , support in eclipse ide. also, can't found benchmark declares none of them best, performance not factor (all implementations has own strength points).
but, want use jsr-303 validation spec, , i've chosen hibernate-validator (witch reference implementation of bean validation spec).
moreover, i'm using spring, , there lot of examples spring+hibernate, haven't found opinion said spring better hibernate.
is there problem mixing 2 implementations? better use hibernate jpa hibernate bean validation?
i have been using eclipselink
implementation of jpa spring , hibernate-validation-4.2.0.final
. , no problem far. answer question:
is there problem mixing 2 implementations?
i don't think there problem using eclipselink
jpa implementation hibernate
implementation jsr-303 validation spec together, purpose of these 2 specifications different:
- jsr 303 - bean validation - defines metadata model , api entity validation. not tied specific application tier or programming model.
- jpa - specification of java api management of persistence , object/relational mapping java ee , java se.
spring provides full support jsr-303 bean validation api. need have jsr-303 provider, such hibernate validator, present in classpath , detected automatically.
and spring jpa, available under org.springframework.orm.jpa
package, offers comprehensive support java persistence api
in similar manner integration hibernate
.
Comments
Post a Comment