-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://hibernate.atlassian.net/browse/HHH-17377 Latest JPA 3.2 XSD changes - https://github.com/jakartaee/persistence/blob/9cca8e24321037b7fb48d8deee8626f613ce98a3/api/src/main/resources/jakarta/persistence/orm_3_2.xsd
- Loading branch information
Showing
93 changed files
with
5,329 additions
and
1,233 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
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
22 changes: 22 additions & 0 deletions
22
hibernate-core/src/main/java/org/hibernate/boot/internal/Abstract.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,22 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright: Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.boot.internal; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Used in mapping dynamic models to signify that an entity should be considered abstract. | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Abstract { | ||
} |
23 changes: 23 additions & 0 deletions
23
hibernate-core/src/main/java/org/hibernate/boot/internal/CollectionClassification.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,23 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright: Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.boot.internal; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Used in mapping dynamic models to signify the type of collection to use for a plural attribute | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
@Target({ElementType.FIELD,ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface CollectionClassification { | ||
LimitedCollectionClassification value(); | ||
} |
26 changes: 26 additions & 0 deletions
26
hibernate-core/src/main/java/org/hibernate/boot/internal/Extends.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,26 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright: Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.boot.internal; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Used in mapping dynamic models to specify from which other entity an entity extends. | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
@Target(ElementType.TYPE) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Extends { | ||
/** | ||
* The type extended. String because dynamic models have named "classes". | ||
*/ | ||
String superType(); | ||
} |
23 changes: 23 additions & 0 deletions
23
...rnate-core/src/main/java/org/hibernate/boot/internal/LimitedCollectionClassification.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,23 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright: Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.boot.internal; | ||
|
||
/** | ||
* Limited set of {@linkplain org.hibernate.metamodel.CollectionClassification} | ||
* used in mapping a dynamic model. | ||
* | ||
* @see org.hibernate.boot.jaxb.mapping.spi.JaxbCollectionClassificationImpl | ||
* @see org.hibernate.metamodel.CollectionClassification | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public enum LimitedCollectionClassification { | ||
BAG, | ||
LIST, | ||
SET, | ||
MAP | ||
} |
40 changes: 40 additions & 0 deletions
40
hibernate-core/src/main/java/org/hibernate/boot/internal/Target.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,40 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright: Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.boot.internal; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
/** | ||
* Used in mapping dynamic models to specify the java-type of an attribute, mainly for | ||
* {@linkplain jakarta.persistence.Basic basic}, | ||
* {@linkplain jakarta.persistence.Id id}, | ||
* {@linkplain jakarta.persistence.Embedded embedded} and | ||
* {@linkplain jakarta.persistence.EmbeddedId embedded-id} attributes. | ||
* Can also be useful for {@linkplain org.hibernate.annotations.Any any} and | ||
* {@linkplain org.hibernate.annotations.ManyToAny many-to-any} attributes to | ||
* specify a base type. | ||
* <p/> | ||
* Other attribute classifications have spec-defined ways to specify the target<ul> | ||
* <li>{@linkplain jakarta.persistence.ManyToOne#targetEntity()}</li> | ||
* <li>{@linkplain jakarta.persistence.OneToOne#targetEntity()}</li> | ||
* <li>{@linkplain jakarta.persistence.ElementCollection#targetClass()} </li> | ||
* <li>{@linkplain jakarta.persistence.OneToMany#targetEntity()}</li> | ||
* <li>{@linkplain jakarta.persistence.ManyToMany#targetEntity()}</li> | ||
* </ul> | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
@java.lang.annotation.Target({ElementType.FIELD, ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Target { | ||
/** | ||
* The attribute's Java type | ||
*/ | ||
String value(); | ||
} |
Oops, something went wrong.