Issue #1970 added annotation comment to PluginDataObject header.
Change-Id: Ic6612278d98f862e0d1ba3d504a0391cf59f6a52 Former-commit-id:90d93e2a02
[formerly a84978566dda2f943dff31f61c30ee286d961fd1] Former-commit-id:ed59927d62
This commit is contained in:
parent
cfaeeaff5f
commit
877fbacffe
1 changed files with 20 additions and 0 deletions
|
@ -65,6 +65,26 @@ import com.raytheon.uf.common.util.ConvertUtil;
|
|||
* plugin specific data type would be called SatelliteRecord.
|
||||
*
|
||||
* <pre>
|
||||
* Hibernate Annotation Requirements for "@Entity" annotated classes that are subclasses
|
||||
* of PluginDataObject
|
||||
*
|
||||
* 1) If it is not abstract and not a super class for "@Entity" annotated
|
||||
* subclasses, then add a SequenceGenerator annotation:
|
||||
* "@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "
|
||||
* <tablename>seq")"
|
||||
*
|
||||
* 2) If it is abstract and a super class for @Entity annotated subclasses:
|
||||
*
|
||||
* - if there are "@ManyToOne" or "@OneToMany" relationships to the class, then
|
||||
* an "@Entity" annotation has to be used otherwise use a "@MappedSuperClass"
|
||||
* annotation
|
||||
*
|
||||
* - Add an "@Inheritance" annotation
|
||||
* "@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)"
|
||||
*
|
||||
* - Add an "@Sequence" annotation
|
||||
* "@SequenceGenerator(name = PluginDataObject.ID_GEN)"
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue