Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
- Loading branch information
Showing
99 changed files
with
11,425 additions
and
275 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
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
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
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
12 changes: 12 additions & 0 deletions
12
hibernate-core/src/main/java/org/hibernate/boot/jaxb/internal/DefaultXmlMappingOptions.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,12 @@ | ||
/* | ||
* 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.boot.jaxb.internal; | ||
|
||
import org.hibernate.boot.jaxb.spi.XmlMappingOptions; | ||
|
||
public class DefaultXmlMappingOptions implements XmlMappingOptions { | ||
} |
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
...te-core/src/main/java/org/hibernate/boot/jaxb/mapping/internal/AccessTypeMarshalling.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.boot.jaxb.mapping.internal; | ||
|
||
import javax.persistence.AccessType; | ||
|
||
/** | ||
* Marshalling support for dealing with JPA AccessType enums. Plugged into JAXB for binding | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class AccessTypeMarshalling { | ||
public static AccessType fromXml(String name) { | ||
return AccessType.valueOf( name ); | ||
} | ||
|
||
public static String toXml(AccessType accessType) { | ||
return accessType.name(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ore/src/main/java/org/hibernate/boot/jaxb/mapping/internal/ConstraintModeMarshalling.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.boot.jaxb.mapping.internal; | ||
|
||
import javax.persistence.ConstraintMode; | ||
|
||
/** | ||
* Marshalling support for dealing with JPA ConstraintMode enums. Plugged into JAXB for binding | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class ConstraintModeMarshalling { | ||
public static ConstraintMode fromXml(String name) { | ||
return ConstraintMode.valueOf( name ); | ||
} | ||
|
||
public static String toXml(ConstraintMode accessType) { | ||
return accessType.name(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../src/main/java/org/hibernate/boot/jaxb/mapping/internal/DiscriminatorTypeMarshalling.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.boot.jaxb.mapping.internal; | ||
|
||
import javax.persistence.DiscriminatorType; | ||
|
||
/** | ||
* Marshalling support for dealing with JPA DiscriminatorType enums. Plugged into JAXB for binding | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class DiscriminatorTypeMarshalling { | ||
public static DiscriminatorType fromXml(String name) { | ||
return DiscriminatorType.valueOf( name ); | ||
} | ||
|
||
public static String toXml(DiscriminatorType discriminatorType) { | ||
return discriminatorType.name(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...nate-core/src/main/java/org/hibernate/boot/jaxb/mapping/internal/EnumTypeMarshalling.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.boot.jaxb.mapping.internal; | ||
|
||
import javax.persistence.EnumType; | ||
|
||
/** | ||
* Marshalling support for dealing with JPA EnumType enums. Plugged into JAXB for binding | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class EnumTypeMarshalling { | ||
public static EnumType fromXml(String name) { | ||
return EnumType.valueOf( name ); | ||
} | ||
|
||
public static String toXml(EnumType enumType) { | ||
return enumType.name(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ate-core/src/main/java/org/hibernate/boot/jaxb/mapping/internal/FetchTypeMarshalling.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.boot.jaxb.mapping.internal; | ||
|
||
import javax.persistence.FetchType; | ||
|
||
/** | ||
* Marshalling support for dealing with JPA FetchType enums. Plugged into JAXB for binding | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class FetchTypeMarshalling { | ||
public static FetchType fromXml(String name) { | ||
return FetchType.valueOf( name ); | ||
} | ||
|
||
public static String toXml(FetchType fetchType) { | ||
return fetchType.name(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ore/src/main/java/org/hibernate/boot/jaxb/mapping/internal/GenerationTypeMarshalling.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.boot.jaxb.mapping.internal; | ||
|
||
import javax.persistence.GenerationType; | ||
|
||
/** | ||
* Marshalling support for dealing with JPA GenerationType enums. Plugged into JAXB for binding | ||
* | ||
* @author Steve Ebersole | ||
*/ | ||
public class GenerationTypeMarshalling { | ||
public static GenerationType fromXml(String name) { | ||
return GenerationType.valueOf( name ); | ||
} | ||
|
||
public static String toXml(GenerationType accessType) { | ||
return accessType.name(); | ||
} | ||
} |
Oops, something went wrong.