-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
0 deletions.
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
15 changes: 15 additions & 0 deletions
15
hibernate-core/src/test/java/org/hibernate/orm/test/metamodel/Weight.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,15 @@ | ||
/* | ||
* SPDX-License-Identifier: LGPL-2.1-or-later | ||
* Copyright Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.orm.test.metamodel; | ||
|
||
import jakarta.persistence.Embeddable; | ||
|
||
/** | ||
* @author Marco Belladelli | ||
*/ | ||
@Embeddable | ||
public class Weight extends Measurement { | ||
private float weight; | ||
} |
24 changes: 24 additions & 0 deletions
24
hibernate-core/src/test/java/org/hibernate/orm/test/metamodel/WeightClass.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 @@ | ||
/* | ||
* SPDX-License-Identifier: LGPL-2.1-or-later | ||
* Copyright Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.orm.test.metamodel; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.IdClass; | ||
|
||
/** | ||
* @author Marco Belladelli | ||
*/ | ||
@Entity | ||
@IdClass(Weight.class) | ||
public class WeightClass { | ||
@Id | ||
private String unit; | ||
|
||
@Id | ||
private float weight; | ||
|
||
private String description; | ||
} |