Fix test failures for MySql, Derby and Sybase
This commit is contained in:
parent
5e0b98dd61
commit
8d9ce9cd0e
|
@ -44,8 +44,8 @@ public class NestedIdClassTests {
|
||||||
@Test
|
@Test
|
||||||
public void testHqlIdAttributeReference(SessionFactoryScope scope) {
|
public void testHqlIdAttributeReference(SessionFactoryScope scope) {
|
||||||
scope.inTransaction( (session) -> {
|
scope.inTransaction( (session) -> {
|
||||||
session.createQuery( "from Payment p where p.order.orderNumber = '123'" ).list();
|
session.createQuery( "from Payment p where p.order.orderNumber = 123" ).list();
|
||||||
session.createQuery( "from Payment p where p.id.order.orderNumber = '123'" ).list();
|
session.createQuery( "from Payment p where p.id.order.orderNumber = 123" ).list();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,7 @@ public class SmokeTests {
|
||||||
private String accessCode;
|
private String accessCode;
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
@Column(name = "system_id")
|
||||||
public String getSystem() {
|
public String getSystem() {
|
||||||
return system;
|
return system;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,11 +8,15 @@ package org.hibernate.orm.test.mapping.embeddable.strategy.instantiator.embeddab
|
||||||
|
|
||||||
import org.hibernate.annotations.EmbeddableInstantiator;
|
import org.hibernate.annotations.EmbeddableInstantiator;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
|
|
||||||
|
|
||||||
//tag::embeddable-instantiator-class[]
|
//tag::embeddable-instantiator-class[]
|
||||||
@EmbeddableInstantiator( NameInstantiator.class )
|
@EmbeddableInstantiator( NameInstantiator.class )
|
||||||
public class Name {
|
public class Name {
|
||||||
|
@Column(name = "first_name")
|
||||||
private final String first;
|
private final String first;
|
||||||
|
@Column(name = "last_name")
|
||||||
private final String last;
|
private final String last;
|
||||||
|
|
||||||
private Name() {
|
private Name() {
|
||||||
|
|
|
@ -6,9 +6,13 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.orm.test.mapping.embeddable.strategy.instantiator.embedded;
|
package org.hibernate.orm.test.mapping.embeddable.strategy.instantiator.embedded;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
|
|
||||||
//tag::embeddable-instantiator-property[]
|
//tag::embeddable-instantiator-property[]
|
||||||
public class Name {
|
public class Name {
|
||||||
|
@Column(name = "first_name")
|
||||||
private final String first;
|
private final String first;
|
||||||
|
@Column(name = "last_name")
|
||||||
private final String last;
|
private final String last;
|
||||||
|
|
||||||
private Name() {
|
private Name() {
|
||||||
|
|
|
@ -6,9 +6,13 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.orm.test.mapping.embeddable.strategy.instantiator.registered;
|
package org.hibernate.orm.test.mapping.embeddable.strategy.instantiator.registered;
|
||||||
|
|
||||||
|
import jakarta.persistence.Column;
|
||||||
|
|
||||||
//tag::embeddable-instantiator-registration[]
|
//tag::embeddable-instantiator-registration[]
|
||||||
public class Name {
|
public class Name {
|
||||||
|
@Column(name = "first_name")
|
||||||
private final String first;
|
private final String first;
|
||||||
|
@Column(name = "last_name")
|
||||||
private final String last;
|
private final String last;
|
||||||
|
|
||||||
private Name() {
|
private Name() {
|
||||||
|
|
Loading…
Reference in New Issue