HHH-17979 - Add @PropertyRef
HHH-18075 - Transform property-ref HHH-18060 - HbXmlTransformer work
This commit is contained in:
parent
e960b0949f
commit
fd388087c8
|
@ -9,7 +9,7 @@ import org.apache.tools.ant.filters.ReplaceTokens
|
|||
|
||||
// build a map of the database settings to use.
|
||||
ext {
|
||||
db = project.hasProperty('db') ? project.getProperty('db') : 'h2'
|
||||
db = project.hasProperty('db') ? project.getProperty('db') : 'derby'
|
||||
dbHost = System.getProperty( 'dbHost', 'localhost' )
|
||||
dbService = System.getProperty( 'dbService', '' )
|
||||
runID = System.getProperty( 'runID', '' )
|
||||
|
|
|
@ -23,6 +23,7 @@ import org.hibernate.testing.orm.junit.Setting;
|
|||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Embeddable;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
|
@ -98,7 +99,9 @@ public class CompositeManyToOnePropertyRefTests {
|
|||
|
||||
@Embeddable
|
||||
public static class Name {
|
||||
@Column(name = "fname")
|
||||
private String first;
|
||||
@Column(name = "lname")
|
||||
private String last;
|
||||
|
||||
public Name() {
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
<class name="CompositeManyToOnePropertyRefTests$Person" table="persons">
|
||||
<id name="id"/>
|
||||
<component name="name" class="CompositeManyToOnePropertyRefTests$Name">
|
||||
<property name="first"/>
|
||||
<property name="last"/>
|
||||
<property name="first" column="fname"/>
|
||||
<property name="last" column="lname"/>
|
||||
</component>
|
||||
</class>
|
||||
|
||||
|
|
Loading…
Reference in New Issue