Skip to content

Commit

Permalink
HHH-10598 - Oracle JDBC driver can't handle entities with a one-chara…
Browse files Browse the repository at this point in the history
…cter name in some cases
  • Loading branch information
jmartisk authored and vladmihalcea committed Apr 6, 2016
1 parent e591b70 commit 7868596
Show file tree
Hide file tree
Showing 19 changed files with 175 additions and 175 deletions.
Expand Up @@ -10,7 +10,7 @@
* No Documentation
*/
@javax.persistence.Entity
public class B extends AbstractEntity {
public class EntityB extends AbstractEntity {
private static final long serialVersionUID = 325417243L;

/**
Expand All @@ -19,7 +19,7 @@ public class B extends AbstractEntity {
@javax.persistence.OneToMany(cascade = {
javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}
, mappedBy = "b")
private java.util.Set<G> gCollection = new java.util.HashSet<G>();
private java.util.Set<EntityG> gCollection = new java.util.HashSet<EntityG>();


/**
Expand All @@ -28,7 +28,7 @@ public class B extends AbstractEntity {
@javax.persistence.ManyToOne(cascade = {
javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}
, optional = false)
private C c;
private EntityC c;



Expand All @@ -38,30 +38,30 @@ public class B extends AbstractEntity {
@javax.persistence.ManyToOne(cascade = {
javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}
, optional = false)
private D d;
private EntityD d;

public java.util.Set<G> getGCollection() {
public java.util.Set<EntityG> getGCollection() {
return gCollection;
}

public void setGCollection(
java.util.Set<G> parameter) {
java.util.Set<EntityG> parameter) {
this.gCollection = parameter;
}

public C getC() {
public EntityC getC() {
return c;
}

public void setC(C parameter) {
public void setC(EntityC parameter) {
this.c = parameter;
}

public D getD() {
public EntityD getD() {
return d;
}

public void setD(D parameter) {
public void setD(EntityD parameter) {
this.d = parameter;
}

Expand Down
Expand Up @@ -12,30 +12,30 @@
* No Documentation
*/
@javax.persistence.Entity
public class C extends AbstractEntity {
public class EntityC extends AbstractEntity {
private static final long serialVersionUID = 1226955752L;

@javax.persistence.OneToMany(mappedBy = "c")
private Set<B> bCollection = new java.util.HashSet<org.hibernate.test.annotations.cascade.multicircle.jpa.identity.B>();
private Set<EntityB> bCollection = new java.util.HashSet<EntityB>();

@javax.persistence.OneToMany(cascade = {
javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}
, mappedBy = "c")
private Set<D> dCollection = new java.util.HashSet<D>();
private Set<EntityD> dCollection = new java.util.HashSet<EntityD>();

public Set<B> getBCollection() {
public Set<EntityB> getBCollection() {
return bCollection;
}

public void setBCollection(Set<B> bCollection) {
public void setBCollection(Set<EntityB> bCollection) {
this.bCollection = bCollection;
}

public Set<D> getDCollection() {
public Set<EntityD> getDCollection() {
return dCollection;
}

public void setDCollection(Set<D> dCollection) {
public void setDCollection(Set<EntityD> dCollection) {
this.dCollection = dCollection;
}

Expand Down
Expand Up @@ -10,53 +10,53 @@
* No Documentation
*/
@javax.persistence.Entity
public class D extends AbstractEntity {
public class EntityD extends AbstractEntity {
private static final long serialVersionUID = 2417176961L;

@javax.persistence.OneToMany(mappedBy = "d")
private java.util.Set<B> bCollection = new java.util.HashSet<B>();
private java.util.Set<EntityB> bCollection = new java.util.HashSet<EntityB>();

@javax.persistence.ManyToOne(optional = false)
private C c;
private EntityC c;

@javax.persistence.ManyToOne(optional = false)
private E e;
private EntityE e;

@javax.persistence.OneToMany(cascade = {
javax.persistence.CascadeType.MERGE,
javax.persistence.CascadeType.PERSIST,
javax.persistence.CascadeType.REFRESH},
mappedBy = "d"
)
private java.util.Set<F> fCollection = new java.util.HashSet<F>();
private java.util.Set<EntityF> fCollection = new java.util.HashSet<EntityF>();

public java.util.Set<B> getBCollection() {
public java.util.Set<EntityB> getBCollection() {
return bCollection;
}
public void setBCollection(
java.util.Set<B> parameter) {
java.util.Set<EntityB> parameter) {
this.bCollection = parameter;
}

public C getC() {
public EntityC getC() {
return c;
}
public void setC(C c) {
public void setC(EntityC c) {
this.c = c;
}

public E getE() {
public EntityE getE() {
return e;
}
public void setE(E e) {
public void setE(EntityE e) {
this.e = e;
}

public java.util.Set<F> getFCollection() {
public java.util.Set<EntityF> getFCollection() {
return fCollection;
}
public void setFCollection(
java.util.Set<F> parameter) {
java.util.Set<EntityF> parameter) {
this.fCollection = parameter;
}

Expand Down
Expand Up @@ -10,26 +10,26 @@
* No Documentation
*/
@javax.persistence.Entity
public class E extends AbstractEntity {
public class EntityE extends AbstractEntity {
private static final long serialVersionUID = 1226955558L;

@javax.persistence.OneToMany(mappedBy = "e")
private java.util.Set<D> dCollection = new java.util.HashSet<org.hibernate.test.annotations.cascade.multicircle.jpa.identity.D>();
private java.util.Set<EntityD> dCollection = new java.util.HashSet<EntityD>();

@javax.persistence.ManyToOne(optional = true)
private F f;
private EntityF f;

public java.util.Set<D> getDCollection() {
public java.util.Set<EntityD> getDCollection() {
return dCollection;
}
public void setDCollection(java.util.Set<D> dCollection) {
public void setDCollection(java.util.Set<EntityD> dCollection) {
this.dCollection = dCollection;
}

public F getF() {
public EntityF getF() {
return f;
}
public void setF(F parameter) {
public void setF(EntityF parameter) {
this.f = parameter;
}
}
Expand Up @@ -10,7 +10,7 @@
* No Documentation
*/
@javax.persistence.Entity
public class F extends AbstractEntity {
public class EntityF extends AbstractEntity {
private static final long serialVersionUID = 1471534025L;

/**
Expand All @@ -19,33 +19,33 @@ public class F extends AbstractEntity {
@javax.persistence.OneToMany(cascade = {
javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}
, mappedBy = "f")
private java.util.Set<E> eCollection = new java.util.HashSet<E>();
private java.util.Set<EntityE> eCollection = new java.util.HashSet<EntityE>();

@javax.persistence.ManyToOne(optional = false)
private D d;
private EntityD d;

@javax.persistence.ManyToOne(optional = false)
private G g;
private EntityG g;

public java.util.Set<E> getECollection() {
public java.util.Set<EntityE> getECollection() {
return eCollection;
}
public void setECollection(
java.util.Set<E> parameter) {
java.util.Set<EntityE> parameter) {
this.eCollection = parameter;
}

public D getD() {
public EntityD getD() {
return d;
}
public void setD(D parameter) {
public void setD(EntityD parameter) {
this.d = parameter;
}

public G getG() {
public EntityG getG() {
return g;
}
public void setG(G parameter) {
public void setG(EntityG parameter) {
this.g = parameter;
}

Expand Down
Expand Up @@ -10,27 +10,27 @@
* No Documentation
*/
@javax.persistence.Entity
public class G extends AbstractEntity {
public class EntityG extends AbstractEntity {
private static final long serialVersionUID = 325417437L;

@javax.persistence.ManyToOne(optional = false)
private B b;
private EntityB b;

@javax.persistence.OneToMany(mappedBy = "g")
private java.util.Set<F> fCollection = new java.util.HashSet<F>();
private java.util.Set<EntityF> fCollection = new java.util.HashSet<EntityF>();

public B getB() {
public EntityB getB() {
return b;
}
public void setB(B parameter){
public void setB(EntityB parameter){
this.b = parameter;
}

public java.util.Set<F> getFCollection() {
public java.util.Set<EntityF> getFCollection() {
return fCollection;
}
public void setFCollection(
java.util.Set<F> parameter) {
java.util.Set<EntityF> parameter) {
this.fCollection = parameter;
}
}

0 comments on commit 7868596

Please sign in to comment.