Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-8712 - Hibernate startup error "HHH015011: Unable to locate stati…
…c metamodel field" (cherry picked from commit dbb84be)
- Loading branch information
Showing
7 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...itymanager/src/test/java/org/hibernate/jpa/test/metamodel/attributeInSuper/WorkOrder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.jpa.test.metamodel.attributeInSuper; | ||
|
||
import java.io.Serializable; | ||
import java.util.Set; | ||
import javax.persistence.CascadeType; | ||
import javax.persistence.EmbeddedId; | ||
import javax.persistence.OneToMany; | ||
import javax.persistence.OrderBy; | ||
|
||
@javax.persistence.Entity | ||
public class WorkOrder implements Serializable { | ||
@EmbeddedId | ||
private WorkOrderId id; | ||
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "workOrder") | ||
@OrderBy("operation, bomItemNumber") | ||
private Set<WorkOrderComponent> components; | ||
/* other stuffs */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...rc/test/java/org/hibernate/jpa/test/metamodel/attributeInSuper/WorkOrderComponentId_.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.jpa.test.metamodel.attributeInSuper; | ||
|
||
import javax.persistence.metamodel.SingularAttribute; | ||
import javax.persistence.metamodel.StaticMetamodel; | ||
|
||
@StaticMetamodel(WorkOrderComponentId.class) | ||
public abstract class WorkOrderComponentId_ extends WorkOrderId_ { | ||
|
||
public static volatile SingularAttribute<WorkOrderComponentId, Long> lineNumber; | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
.../src/test/java/org/hibernate/jpa/test/metamodel/attributeInSuper/WorkOrderComponent_.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.jpa.test.metamodel.attributeInSuper; | ||
|
||
import javax.persistence.metamodel.SingularAttribute; | ||
import javax.persistence.metamodel.StaticMetamodel; | ||
|
||
/** | ||
* @author Steve Ebersole | ||
*/ | ||
@StaticMetamodel(WorkOrderComponent.class) | ||
public class WorkOrderComponent_ { | ||
public static volatile SingularAttribute<WorkOrderComponent, WorkOrderComponentId> id; | ||
public static volatile SingularAttribute<WorkOrderComponent, WorkOrder> workOrder; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
...manager/src/test/java/org/hibernate/jpa/test/metamodel/attributeInSuper/WorkOrderId_.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.jpa.test.metamodel.attributeInSuper; | ||
|
||
import javax.persistence.metamodel.SingularAttribute; | ||
import javax.persistence.metamodel.StaticMetamodel; | ||
|
||
@StaticMetamodel(WorkOrderId.class) | ||
public abstract class WorkOrderId_ { | ||
public static volatile SingularAttribute<WorkOrderId, Long> plantId; | ||
public static volatile SingularAttribute<WorkOrderId, String> workOrder; | ||
} |
19 changes: 19 additions & 0 deletions
19
...tymanager/src/test/java/org/hibernate/jpa/test/metamodel/attributeInSuper/WorkOrder_.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
package org.hibernate.jpa.test.metamodel.attributeInSuper; | ||
|
||
import java.util.Set; | ||
import javax.persistence.metamodel.PluralAttribute; | ||
import javax.persistence.metamodel.SingularAttribute; | ||
import javax.persistence.metamodel.StaticMetamodel; | ||
|
||
@StaticMetamodel(WorkOrder.class) | ||
public class WorkOrder_ { | ||
public static volatile SingularAttribute<WorkOrder, WorkOrderId> id; | ||
public static volatile PluralAttribute<WorkOrder, Set, WorkOrderComponent> components; | ||
|
||
} |