java - JPA/Hibernate: What use is an ORM (Hibernate) when it doesn't get all JPA mappings right? -


i've played lot hibernate , jpa mapping in last couple of months/weeks. db uses composite primary keys , i've reported approximately 10 15 hibernate , 5-10 eclipselink bugs. hibernate ridiculous in constellations ought working. (i had code checked experts , jpa book authors)

the big question is:

what use orm when doesn't all jpa mappings right?

hibernate has soo offer, caching etcetc. wonder cares when developers can't past creating working meta data model... it's pointless. again, use orm when doesn't all jpa mappings right?

orm tool. ponder sentence deeply.

it believed if piece technology, hibernate in case, becomes popular enough in specific domain, silver bullet , have use it, otherwise you're loser.

this plainly , utterly wrong. hibernate tool should used appropriately.

hibernate's authors hibernate best suited new projects, mappings defined in xml or using annotations, , hibernate generates dll database , creates tables , relationships.

the reverse can tricky, when you've got non normalized tables , composite primary keys.

that's why hibernate encourages use of primary surrogate keys autoincrementing.

doing proper jpa reverse mapping challenge many corner cases awaiting in wild, you're doing right thing report these bugs can fixed. more persistence, i'm sure you'll able mappings , after should easier, since first part hardest.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -