JBoss 都可以用JPA API 的。重未 game over, 佢兩隻ORM 都得喎。
除非閣下 jboss > glassfish.. Glas ...
Flower 發表於 2013-10-10 18:45 
You show me the Hibernate API, dude.
I will rather import JPA's classes/interface from JPA API for future proof if you don't have to use specific hibernate feature.
And yes, this is exactly what I am talking about. Porting from hibernate to eclipselink is a pain in the ass if you used all hibernate API.
Spring-Data just provide a layer on top of JPA/JDBC and other NoSQL db for easier coding and hide the complexity of handling all the JPA implementations/JDBC call yourself. I personally have not used it yet. |