BitTigerInst / BitTiger-CS504-FAQ

CS504 后端工程师直通车 FAQ
20 stars 10 forks source link

JPA vs JDBC #21

Open hackjutsu opened 7 years ago

hackjutsu commented 7 years ago

http://stackoverflow.com/q/11881548/3697757

bittiger-java commented 7 years ago

I don't agree JPA is a standard for Object Relational Mapping. JPA is doing more than that. Like typed query in JPQL. Also "Mostly, XML mapping files or annotations on getters, setters can be used to tell the JPA provider which fields on your object map to which fields in the DB" is not accurate. Most of ORM is done by annotation now.