mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective code change - add serialize/serialversionuid (#1286)
This commit is contained in:
committed by
Rob Bygrave
parent
0e3f47ee82
commit
10f3d85d9f
@@ -9,6 +9,7 @@ import javax.persistence.ManyToOne;
|
||||
|
||||
@Entity
|
||||
public class ChildPerson extends InheritablePerson {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final String PARENTS_JOIN = "join parent_person j1 on j1.identifier = ${ta}.parent_identifier "
|
||||
+ "join grand_parent_person j2 on j2.identifier = j1.parent_identifier";
|
||||
|
||||
@@ -13,7 +13,8 @@ import java.util.List;
|
||||
|
||||
@Entity
|
||||
public class GrandParentPerson extends InheritablePerson {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@OneToMany(mappedBy = "parent", cascade = CascadeType.ALL)
|
||||
@OrderBy("identifier")
|
||||
private List<ParentPerson> children = new ArrayList<>();
|
||||
|
||||
@@ -2,12 +2,15 @@ package org.tests.model.family;
|
||||
|
||||
import org.tests.model.basic.EBasic;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
|
||||
@MappedSuperclass
|
||||
public abstract class InheritablePerson {
|
||||
public abstract class InheritablePerson implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private Integer identifier;
|
||||
|
||||
@@ -14,6 +14,7 @@ import java.util.List;
|
||||
|
||||
@Entity
|
||||
public class ParentPerson extends InheritablePerson {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
//This rather complex formulas should be built later by CustomAnnotationParser
|
||||
private static final String CHILD_PERSON_AGGREGATE_JOIN = "left join "
|
||||
|
||||
Reference in New Issue
Block a user