Hibernate: Use a Base-class for Common Fields/Columns and Behavior
2008年08月18日 15:05 • 查看 2 次 • 打印本文
Tired of wiring in an id, version, and timestamp field into all of your Hibernate objects? There’s an easy way to solve this pain once and for all of your classes. Avoid code-repetition: today’s article focuses on using Hibernate Annotations to map common fields into one mapped superclass.
评论
发表评论