HHH-17979 - Add @PropertyRef

HHH-18075 - Transform property-ref
HHH-18060 - HbXmlTransformer work
This commit is contained in:
Steve Ebersole 2024-06-03 21:32:40 -05:00
parent e960b0949f
commit fd388087c8
3 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
// build a map of the database settings to use. // build a map of the database settings to use.
ext { ext {
db = project.hasProperty('db') ? project.getProperty('db') : 'h2' db = project.hasProperty('db') ? project.getProperty('db') : 'derby'
dbHost = System.getProperty( 'dbHost', 'localhost' ) dbHost = System.getProperty( 'dbHost', 'localhost' )
dbService = System.getProperty( 'dbService', '' ) dbService = System.getProperty( 'dbService', '' )
runID = System.getProperty( 'runID', '' ) runID = System.getProperty( 'runID', '' )

View File

@ -23,6 +23,7 @@ import org.hibernate.testing.orm.junit.Setting;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable; import jakarta.persistence.Embeddable;
import jakarta.persistence.Entity; import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
@ -98,7 +99,9 @@ public class CompositeManyToOnePropertyRefTests {
@Embeddable @Embeddable
public static class Name { public static class Name {
@Column(name = "fname")
private String first; private String first;
@Column(name = "lname")
private String last; private String last;
public Name() { public Name() {

View File

@ -16,8 +16,8 @@
<class name="CompositeManyToOnePropertyRefTests$Person" table="persons"> <class name="CompositeManyToOnePropertyRefTests$Person" table="persons">
<id name="id"/> <id name="id"/>
<component name="name" class="CompositeManyToOnePropertyRefTests$Name"> <component name="name" class="CompositeManyToOnePropertyRefTests$Name">
<property name="first"/> <property name="first" column="fname"/>
<property name="last"/> <property name="last" column="lname"/>
</component> </component>
</class> </class>