filmov
tv
Hibernate Tip: How to use a timestamp for versioning and optimistic locking

Показать описание
When you had to map a legacy table model in one of your projects, you probably know this situation. Instead of a numeric version column, the table model uses the timestamp of the last update. I don’t recommend using this approach because numeric versioning is much more efficient. But if you have to, you can also use a timestamp for versioning with JPA and Hibernate.
If you like this video, please give me your thumbs up and share it with your friends and co-workers.
Like my channel? Subscribe!
Join the free Member Library:
Want to connect with me?
#Hibernate
#JPA
#HibernateTips
Hibernate Tip: How To Map an Entity to a Query
Hibernate Tip: How to use a custom database sequence
Hibernate Tip - How to map an association to a java.util.Map
Hibernate Tips: How to use Hibernate's native bootstrapping API
Hibernate Tip: How to map native query results to managed entities
Hibernate Tip: How to use the QueryCache to avoid additional queries
Hibernate Tip: How to create a database setup script based on entity mappings
Hibernate Tip: How does Hibernate’s native ID generator work?
Hibernate Tip: How to override column mappings of a superclass
Hibernate Tip: How to access Hibernate APIs from JPA
Hibernate Tip - How to use pagination with JPQL
Hibernate Tip - How to log SQL statements and their parameters
Hibernate Tip: Calculate entity attributes with @Formula
Hibernate Tip: How to use an ORDER BY clause in a CriteriaQuery
Hibernate Tip : How to avoid MultipleBagFetchException
Hibernate Tip: Map 1 Entity Attribute to 2 Columns
Hibernate Tips ‘n’ Tricks - 15 Tips to solve common problems by Thorben Janssen
Hibernate Tip: How to persist a List of Strings as an ElementCollection
Hibernate Tip: The best way to work with scalar projections
Hibernate Tip: Customize the association mappings using a composite key
Hibernate Tip : How to use an autoincremented database column as a primary key
Hibernate Tip: SINGLE_TABLE strategy without discriminator column
VLAD MIHALCEA - Java Persistence and Hibernate Tips that can boost up your application performance
Hibernate Tip: Control cache invalidation for native queries
Комментарии