code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public Integer getTestProperty() { return testProperty; }
This sub-entity has the same attribute name as {@link Post} but with a different (SimpleValue) type
getTestProperty
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
Apache-2.0
public void setTestProperty(Integer testProperty) { this.testProperty = testProperty; }
This sub-entity has the same attribute name as {@link Post} but with a different (SimpleValue) type
setTestProperty
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
Apache-2.0
public NestedEmbeddable getNestedEmbeddable() { return nestedEmbeddable; }
This sub-entity has the same attribute name as {@link Post} but with a different (SimpleValue) type
getNestedEmbeddable
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
Apache-2.0
public void setNestedEmbeddable(NestedEmbeddable nestedEmbeddable) { this.nestedEmbeddable = nestedEmbeddable; }
This sub-entity has the same attribute name as {@link Post} but with a different (SimpleValue) type
setNestedEmbeddable
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
Apache-2.0
public AuthorEmbeddable getAuthorEmbeddable() { return authorEmbeddable; }
This sub-entity has the same attribute name as {@link Post} but with a different (SimpleValue) type
getAuthorEmbeddable
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
Apache-2.0
public void setAuthorEmbeddable(AuthorEmbeddable authorEmbeddable) { this.authorEmbeddable = authorEmbeddable; }
This sub-entity has the same attribute name as {@link Post} but with a different (SimpleValue) type
setAuthorEmbeddable
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/JoinedInheritanceSameAttributeNameTest.java
Apache-2.0
public void setSex(char sex) { this.sex = sex; }
@param sex The sex to set.
setSex
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
public void setId(long id) { this.id = id; }
@param id The id to set.
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
public void setName(String identity) { this.name = identity; }
@param identity The identity to set.
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
public double getHeightInches() { return heightInches; }
@return Returns the height in inches.
getHeightInches
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
public void setHeightInches(double heightInches) { this.heightInches = heightInches; }
@param heightInches The height in inches to set.
setHeightInches
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
public int getVersion() { return version; }
@param heightInches The height in inches to set.
getVersion
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
public void setVersion(int version) { this.version = version; }
@param heightInches The height in inches to set.
setVersion
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/inheritance/joined/Person.java
Apache-2.0
@Test void testMappings(DomainModelScope scope) { final PersistentClass entityBinding = scope.getEntityBinding( EntityWithJavaTimeValues.class ); checkAttribute( entityBinding, "theLocalDate", LocalDateJdbcType.class ); checkAttribute( entityBinding, "theLocalDateTime", LocalDateTimeJdbcType.class ); checkAtt...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testMappings
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
private void checkAttribute( PersistentClass entityBinding, String attributeName, Class<? extends JavaTimeJdbcType> expectedJdbcTypeDescriptorType) { final Property property = entityBinding.getProperty( attributeName ); final BasicValue value = (BasicValue) property.getValue(); final BasicValue.Resolutio...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
checkAttribute
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testInstant(SessionFactoryScope scope) { final Dialect dialect = scope.getSessionFactory().getJdbcServices().getDialect(); final Instant start = adjustToDefaultPrecision( Instant.EPOCH, dialect ); scope.inTransaction( (session) -> { final EntityWithJavaTimeValues entity = new EntityWithJavaTimeVal...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testInstant
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testLocalDateTime(SessionFactoryScope scope) { final Dialect dialect = scope.getSessionFactory().getJdbcServices().getDialect(); final LocalDateTime start = adjustToDefaultPrecision( LocalDateTime.now(), dialect ); scope.inTransaction( (session) -> { final EntityWithJavaTimeValues entity = new Ent...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testLocalDateTime
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testLocalDate(SessionFactoryScope scope) { final Dialect dialect = scope.getSessionFactory().getJdbcServices().getDialect(); final LocalDate startTime = adjustToDefaultPrecision( LocalDate.now(), dialect ); scope.inTransaction( (session) -> { final EntityWithJavaTimeValues entity = new EntityWithJ...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testLocalDate
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
@Test @SkipForDialect(dialectClass = OracleDialect.class, reason = "Oracle drivers truncate fractional seconds from the LocalTime", matchSubTypes = true) @SkipForDialect(dialectClass = HANADialect.class, reason = "HANA time type does not support fractional seconds", matchSubTypes = true) @SkipForDialect(dialectClass...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testLocalTime
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
@AfterEach void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createMutationQuery( "delete EntityWithJavaTimeValues" ).executeUpdate(); } ); }
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/GlobalJavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testMappings(DomainModelScope scope) { final PersistentClass entityBinding = scope.getEntityBinding( EntityWithJavaTimeValues.class ); checkAttribute( entityBinding, "theLocalDate", DateJdbcType.class ); checkAttribute( entityBinding, "theLocalDateTime", TimestampJdbcType.class ); checkAttribute( e...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testMappings
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeBaselineTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeBaselineTests.java
Apache-2.0
private void checkAttribute( PersistentClass entityBinding, String attributeName, Class<?> expectedJdbcTypeDescriptorType) { final Property property = entityBinding.getProperty( attributeName ); final BasicValue value = (BasicValue) property.getValue(); final BasicValue.Resolution<?> resolution = value.r...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
checkAttribute
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeBaselineTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeBaselineTests.java
Apache-2.0
@Test void testMappings(DomainModelScope scope) { final PersistentClass entityBinding = scope.getEntityBinding( EntityWithJavaTimeValues.class ); checkAttribute( entityBinding, "theLocalDate", LocalDateJdbcType.class ); checkAttribute( entityBinding, "theLocalDateTime", LocalDateTimeJdbcType.class ); checkAtt...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testMappings
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
private void checkAttribute( PersistentClass entityBinding, String attributeName, Class<?> expectedJdbcTypeDescriptorType) { final Property property = entityBinding.getProperty( attributeName ); final BasicValue value = (BasicValue) property.getValue(); final BasicValue.Resolution<?> resolution = value.r...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
checkAttribute
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testInstant(SessionFactoryScope scope) { final Dialect dialect = scope.getSessionFactory().getJdbcServices().getDialect(); final Instant start = adjustToDefaultPrecision( Instant.EPOCH, dialect ); scope.inTransaction( (session) -> { final EntityWithJavaTimeValues entity = new EntityWithJavaTimeVal...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testInstant
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testLocalDateTime(SessionFactoryScope scope) { final Dialect dialect = scope.getSessionFactory().getJdbcServices().getDialect(); final LocalDateTime start = adjustToDefaultPrecision( LocalDateTime.now(), dialect ); scope.inTransaction( (session) -> { final EntityWithJavaTimeValues entity = new Ent...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testLocalDateTime
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
@Test void testLocalDate(SessionFactoryScope scope) { final Dialect dialect = scope.getSessionFactory().getJdbcServices().getDialect(); final LocalDate startTime = adjustToDefaultPrecision( LocalDate.now(), dialect ); scope.inTransaction( (session) -> { final EntityWithJavaTimeValues entity = new EntityWithJ...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testLocalDate
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
@Test @SkipForDialect(dialectClass = OracleDialect.class, reason = "Oracle drivers truncate fractional seconds from the LocalTime", matchSubTypes = true) @SkipForDialect(dialectClass = HANADialect.class, reason = "HANA time type does not support fractional seconds", matchSubTypes = true) @SkipForDialect(dialectClass...
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
testLocalTime
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
@AfterEach void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createMutationQuery( "delete EntityWithJavaTimeValues" ).executeUpdate(); } ); }
Tests for "direct" JDBC handling of {@linkplain java.time Java Time} types. @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/javatime/JavaTimeJdbcTypeTests.java
Apache-2.0
@BeforeEach protected void prepareTest(SessionFactoryScope scope) throws Exception { scope.inTransaction( (session) -> { final Airport austin = new Airport( 1, "AUS" ); final Airport baltimore = new Airport( 2, "BWI" ); final Flight flight1 = new Flight( 1, "ABC-123", austin, baltimore ); fi...
Same as {@link LazyToOneTest} except here we have bytecode-enhanced entities via {@link BytecodeEnhanced}
prepareTest
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedLazyToOneTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedLazyToOneTest.java
Apache-2.0
@AfterEach protected void cleanupTestData(SessionFactoryScope scope) throws Exception { scope.inTransaction( (session) -> { session.createMutationQuery( "delete Flight" ).executeUpdate(); session.createMutationQuery( "delete Airport" ).executeUpdate(); } ); }
Same as {@link LazyToOneTest} except here we have bytecode-enhanced entities via {@link BytecodeEnhanced}
cleanupTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedLazyToOneTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedLazyToOneTest.java
Apache-2.0
@Test @FailureExpected( jiraKey = "HHH-13658", reason = "Flight#origination is not treated as lazy. Not sure why exactly" ) public void testEnhancedButProxyNotAllowed(SessionFactoryScope scope) { final StatisticsImplementor statistics = scope.getSessionFactory().getStatistics(); statistics.clear(); scope.inTr...
Same as {@link LazyToOneTest} except here we have bytecode-enhanced entities via {@link BytecodeEnhanced}
testEnhancedButProxyNotAllowed
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedLazyToOneTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedLazyToOneTest.java
Apache-2.0
@BeforeEach protected void prepareTest(SessionFactoryScope scope) throws Exception { scope.inTransaction( (session) -> { final Airport austin = new Airport( 1, "AUS" ); final Airport baltimore = new Airport( 2, "BWI" ); final Flight flight1 = new Flight( 1, "ABC-123", austin, baltimore ); fi...
Same as {@link InstrumentedLazyToOneTest} except here we enable bytecode-enhanced proxies
prepareTest
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedProxyLazyToOneTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedProxyLazyToOneTest.java
Apache-2.0
@AfterEach protected void cleanupTestData(SessionFactoryScope scope) throws Exception { scope.inTransaction( (session) -> { session.createMutationQuery( "delete Flight" ).executeUpdate(); session.createMutationQuery( "delete Airport" ).executeUpdate(); } ); }
Same as {@link InstrumentedLazyToOneTest} except here we enable bytecode-enhanced proxies
cleanupTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedProxyLazyToOneTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedProxyLazyToOneTest.java
Apache-2.0
@Test public void testEnhancedWithProxy(SessionFactoryScope scope) { final StatisticsImplementor statistics = scope.getSessionFactory().getStatistics(); statistics.clear(); scope.inTransaction( (session) -> { final Flight flight1 = session.byId( Flight.class ).load( 1 ); assertThat( statistics.ge...
Same as {@link InstrumentedLazyToOneTest} except here we enable bytecode-enhanced proxies
testEnhancedWithProxy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedProxyLazyToOneTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/InstrumentedProxyLazyToOneTest.java
Apache-2.0
@Test public void testOwnerIsProxy(SessionFactoryScope scope) { SQLStatementInspector sqlStatementInterceptor = (SQLStatementInspector) scope.getStatementInspector(); final EntityPersister orderDescriptor = scope.getSessionFactory().getMappingMetamodel().getEntityDescriptor( Order.class ); final BytecodeEnhancem...
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
testOwnerIsProxy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
@Test @JiraKey("HHH-14659") public void testQueryJoinFetch(SessionFactoryScope scope) { SQLStatementInspector sqlStatementInterceptor = (SQLStatementInspector) scope.getStatementInspector(); Order order = scope.fromTransaction( (session) -> { final Order result = session.createQuery( "select o from Orde...
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
testQueryJoinFetch
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
@BeforeEach public void createTestData(SessionFactoryScope scope) { SQLStatementInspector sqlStatementInterceptor = (SQLStatementInspector) scope.getStatementInspector(); scope.inTransaction( (session) -> { final Customer customer = new Customer( 1, "Acme Brick" ); session.persist( customer ); f...
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
createTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createQuery( "delete Order" ).executeUpdate(); session.createQuery( "delete Customer" ).executeUpdate(); } ); }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public Integer getId() { return id; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public String getName() { return name; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public Integer getId() { return id; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public Customer getCustomer() { return customer; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
getCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public void setCustomer(Customer customer) { this.customer = customer; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
setCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public BigDecimal getAmount() { return amount; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
getAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
public void setAmount(BigDecimal amount) { this.amount = amount; }
Test for lazy uni-directional to-one (with JOIN fetching) when enhanced proxies are allowed
setAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/JoinFetchedManyToOneAllowProxyTests.java
Apache-2.0
@Test public void testLazyManyToOne(SessionFactoryScope scope) { scope.inTransaction( (session) -> { final Order order = session.byId(Order.class).getReference(1); assertThat( Hibernate.isPropertyInitialized( order, "customer"), is(false) ); assertThat( order.customer, nullValue() ); Customer...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
testLazyManyToOne
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
@Test public void testOwnerIsProxy(SessionFactoryScope scope) { SQLStatementInspector statementInspector = (SQLStatementInspector) scope.getSessionFactory() .getSessionFactoryOptions() .getStatementInspector(); final EntityPersister orderDescriptor = scope.getSessionFactory().getMappingMetamodel().getEntit...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
testOwnerIsProxy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
@Test @JiraKey("HHH-14659") public void testQueryJoinFetch(SessionFactoryScope scope) { SQLStatementInspector statementInspector = (SQLStatementInspector) scope.getSessionFactory() .getSessionFactoryOptions() .getStatementInspector(); Order order = scope.fromTransaction( (session) -> { final Order res...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
testQueryJoinFetch
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
@BeforeEach public void createTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { final Customer customer = new Customer( 1, "Acme Brick" ); session.persist( customer ); final Order order = new Order( 1, customer, BigDecimal.ONE ); session.persist( order ); } ); ...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
createTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createQuery( "delete Order" ).executeUpdate(); session.createQuery( "delete Customer" ).executeUpdate(); } ); }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public Integer getId() { return id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public String getName() { return name; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public Integer getId() { return id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public Customer getCustomer() { return customer; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public void setCustomer(Customer customer) { this.customer = customer; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public BigDecimal getAmount() { return amount; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
public void setAmount(BigDecimal amount) { this.amount = amount; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/LanyProxylessManyToOneTests.java
Apache-2.0
@Test public void testOwnerIsProxy(SessionFactoryScope scope) { final EntityPersister orderDescriptor = scope.getSessionFactory().getMappingMetamodel().getEntityDescriptor( Order.class ); final BytecodeEnhancementMetadata orderEnhancementMetadata = orderDescriptor.getBytecodeEnhancementMetadata(); assertThat( or...
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
testOwnerIsProxy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
@Test @JiraKey("HHH-14659") public void testQueryJoinFetch(SessionFactoryScope scope) { SQLStatementInspector statementInspector = scope.getCollectingStatementInspector(); Order order = scope.fromTransaction( (session) -> { final Order result = session.createQuery( "select o from Order o join fetch o.cu...
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
testQueryJoinFetch
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
@BeforeEach public void createTestData(SessionFactoryScope scope) { SQLStatementInspector statementInspector = scope.getCollectingStatementInspector(); scope.inTransaction( (session) -> { final Customer customer = new Customer( 1, "Acme Brick" ); session.persist( customer ); final Order order = ...
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
createTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createQuery( "delete Order" ).executeUpdate(); session.createQuery( "delete Customer" ).executeUpdate(); } ); }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public Integer getId() { return id; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public String getName() { return name; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public Integer getId() { return id; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public Customer getCustomer() { return customer; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
getCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public void setCustomer(Customer customer) { this.customer = customer; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
setCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public BigDecimal getAmount() { return amount; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
getAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
public void setAmount(BigDecimal amount) { this.amount = amount; }
Test for lazy uni-directional to-one (with SELECT fetching) when enhanced proxies are allowed
setAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneAllowProxyTests.java
Apache-2.0
@Test public void testLazyManyToOne(SessionFactoryScope scope) { scope.inTransaction( (session) -> { final Order order = session.byId(Order.class).getReference(1); assertThat( Hibernate.isPropertyInitialized( order, "customer"), is(false) ); assertThat( order.customer, nullValue() ); Customer...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
testLazyManyToOne
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
@Test public void testOwnerIsProxy(SessionFactoryScope scope) { final EntityPersister orderDescriptor = scope.getSessionFactory().getMappingMetamodel().getEntityDescriptor( Order.class ); final BytecodeEnhancementMetadata orderEnhancementMetadata = orderDescriptor.getBytecodeEnhancementMetadata(); assertThat( or...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
testOwnerIsProxy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
@Test @JiraKey("HHH-14659") public void testQueryJoinFetch(SessionFactoryScope scope) { Order order = scope.fromTransaction( (session) -> { final Order result = session.createQuery( "select o from Order o join fetch o.customer", Order.class ) .uniqueResult(); assertThat( scope.getCollecting...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
testQueryJoinFetch
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
@BeforeEach public void createTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { final Customer customer = new Customer( 1, "Acme Brick" ); session.persist( customer ); final Order order = new Order( 1, customer, BigDecimal.ONE ); session.persist( order ); } ); ...
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
createTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
@AfterEach public void dropTestData(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createQuery( "delete Order" ).executeUpdate(); session.createQuery( "delete Customer" ).executeUpdate(); } ); }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
dropTestData
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public Integer getId() { return id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public String getName() { return name; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public void setName(String name) { this.name = name; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setName
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public Integer getId() { return id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
private void setId(Integer id) { this.id = id; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setId
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public Customer getCustomer() { return customer; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public void setCustomer(Customer customer) { this.customer = customer; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setCustomer
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public BigDecimal getAmount() { return amount; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
getAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
public void setAmount(BigDecimal amount) { this.amount = amount; }
Baseline test for uni-directional to-one, using an explicit @LazyToOne(NO_PROXY) @author Steve Ebersole
setAmount
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/ManyToOneExplicitOptionTests.java
Apache-2.0
@BeforeEach void afterSessionFactoryBuilt(SessionFactoryScope scope) { scope.inTransaction( session -> { User user0 = new User(); user0.setId( 0L ); session.persist( user0 ); User user1 = new User(); user1.setId( 1L ); session.persist( user1 ); User user2 = new User(); user2.setId( 2L ); ...
Test lazy-to-one initialization within a collection initialization, with the PADDED batch-fetch-style. <p> In particular, with Offer having a lazy to-one association to CostCenter, and User having a lazy to-many association to UserAuthorization1 and UserAuthorization2, and UserAuthorization1 and UserAuthorization2 havi...
afterSessionFactoryBuilt
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
Apache-2.0
@AfterEach void tearDown(SessionFactoryScope scope) { scope.inTransaction( (session) -> { session.createMutationQuery( "delete from UserAuthorization" ).executeUpdate(); session.createMutationQuery( "delete from Offer" ).executeUpdate(); session.createMutationQuery( "delete from CostCenter" ).executeUpdate(...
Test lazy-to-one initialization within a collection initialization, with the PADDED batch-fetch-style. <p> In particular, with Offer having a lazy to-one association to CostCenter, and User having a lazy to-many association to UserAuthorization1 and UserAuthorization2, and UserAuthorization1 and UserAuthorization2 havi...
tearDown
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
Apache-2.0
@Test public void testOneReference(SessionFactoryScope scope) { scope.inTransaction( (session) -> { // Add a lazy proxy of the cost center to the persistence context // through the lazy to-one association from the offer. Offer offer = session.find( Offer.class, 6L ); User user = session.find( User.class...
Test lazy-to-one initialization within a collection initialization, with the PADDED batch-fetch-style. <p> In particular, with Offer having a lazy to-one association to CostCenter, and User having a lazy to-many association to UserAuthorization1 and UserAuthorization2, and UserAuthorization1 and UserAuthorization2 havi...
testOneReference
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
Apache-2.0
@Test public void testTwoReferences(SessionFactoryScope scope) { scope.inTransaction( (session) -> { // Add a lazy proxy of the cost center to the persistence context // through the lazy to-one association from the offer. Offer offer = session.find( Offer.class, 6L ); User user = session.find( User.clas...
Test lazy-to-one initialization within a collection initialization, with the PADDED batch-fetch-style. <p> In particular, with Offer having a lazy to-one association to CostCenter, and User having a lazy to-many association to UserAuthorization1 and UserAuthorization2, and UserAuthorization1 and UserAuthorization2 havi...
testTwoReferences
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
Apache-2.0
@Test public void testThreeReferences(SessionFactoryScope scope) { scope.inTransaction( (session) -> { // Add a lazy proxy of the cost center to the persistence context // through the lazy to-one association from the offer. Offer offer = session.find( Offer.class, 6L ); User user = session.find( User.cl...
Test lazy-to-one initialization within a collection initialization, with the PADDED batch-fetch-style. <p> In particular, with Offer having a lazy to-one association to CostCenter, and User having a lazy to-many association to UserAuthorization1 and UserAuthorization2, and UserAuthorization1 and UserAuthorization2 havi...
testThreeReferences
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/collectioninitializer/InitLazyToOneWithinPaddedCollectionInitializationAllowProxyTest.java
Apache-2.0
@Test public void testOwnerIsProxy(SessionFactoryScope scope) { final EntityPersister supplementalInfoDescriptor = scope.getSessionFactory().getMappingMetamodel().getEntityDescriptor( SupplementalInfo.class ); final BytecodeEnhancementMetadata supplementalInfoEnhancementMetadata = supplementalInfoDescriptor.getByt...
Baseline test for inverse (mappedBy) to-one, using an explicit @LazyToOne(NO_PROXY)
testOwnerIsProxy
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/mappedby/InverseToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/mappedby/InverseToOneExplicitOptionTests.java
Apache-2.0
@Test @JiraKey("HHH-14659") public void testQueryJoinFetch(SessionFactoryScope scope) { SupplementalInfo info = scope.fromTransaction( (session) -> { final SupplementalInfo result = session.createQuery( "select s from SupplementalInfo s join fetch s.customer", SupplementalInfo.class ) .uniqueR...
Baseline test for inverse (mappedBy) to-one, using an explicit @LazyToOne(NO_PROXY)
testQueryJoinFetch
java
hibernate/hibernate-orm
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/mappedby/InverseToOneExplicitOptionTests.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/mapping/lazytoone/mappedby/InverseToOneExplicitOptionTests.java
Apache-2.0