APPENDIX

image

More Advanced Features

In this appendix, we discuss some of the features that, strictly speaking, lie outside the scope of this book, but that you should be aware of if you go on to use Hibernate in more depth.

Managed Versioning and Optimistic Locking

While we have saved versioning for this appendix’s discussion of advanced features, it is actually quite straightforward to understand and apply. Consider the following scenario:

  • Client A loads and edits a record.
  • Client B loads and edits the same record.
  • Client A commits its edited record data.
  • Client B commits its differently edited record data.

While the scenario is simple, the problems ...

Get Beginning Hibernate, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.