Hibernate Tips ‘n’ Tricks – 15 Tips to solve common problems
You probably know this situation: Your customer asks for “just a tiny, little change”. After a few hours … or days … you recognize that you can’t implement it that easily. At some point you think: “I can’t be the first who tries to implements this!” You’re probably right … Hibernate provides a lot of lesser known features that help you to implement common requirements quickly. The problem is that most developers don’t know about them. They spend days to create their own solution when it just takes an annotation or a few lines of code to:
Implement multi-tenancy
Support a database-specific data type
Map an SQL-snippet instead of a database column to an entity attribute
Retrieve the elements of a mapped association in a defined order
Generate UUIDs as primary keys
Write an audit log documenting all changes performed on an entity
And more…

#hibernate #java

Hibernate Tips ‘n’ Tricks – 15 Tips to solve common problems
2.30 GEEK