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 void setTheArray(String[] theArray) {
this.theArray = theArray;
} | @author Jordan Gigov
@author Christian Beikov | setTheArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/StringArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/StringArrayTest.java | Apache-2.0 |
@BeforeAll
public void startUp(SessionFactoryScope scope) {
scope.inTransaction( em -> {
arrayType = em.getTypeConfiguration().getBasicTypeForJavaType( LocalTime[].class );
time1 = LocalTime.of( 0, 0, 0 );
time2 = LocalTime.of( 6, 15, 0 );
time3 = LocalTime.of( 12, 30, 0 );
time4 = LocalTime.of( 23, 5... | @author Jordan Gigov
@author Christian Beikov | startUp | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@Test
public void testById(SessionFactoryScope scope) {
scope.inSession( em -> {
TableWithTimeArrays tableRecord;
tableRecord = em.find( TableWithTimeArrays.class, 1L );
assertThat( tableRecord.getTheArray(), is( new LocalTime[]{} ) );
tableRecord = em.find( TableWithTimeArrays.class, 2L );
assertTha... | @author Jordan Gigov
@author Christian Beikov | testById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@Test
public void testQueryById(SessionFactoryScope scope) {
scope.inSession( em -> {
TypedQuery<TableWithTimeArrays> tq = em.createNamedQuery( "TableWithTimeArrays.JPQL.getById", TableWithTimeArrays.class );
tq.setParameter( "id", 2L );
TableWithTimeArrays tableRecord = tq.getSingleResult();
assertThat(... | @author Jordan Gigov
@author Christian Beikov | testQueryById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@Test
public void testQuery(SessionFactoryScope scope) {
scope.inSession( em -> {
TypedQuery<TableWithTimeArrays> tq = em.createNamedQuery( "TableWithTimeArrays.JPQL.getByData", TableWithTimeArrays.class );
tq.setParameter( "data", new LocalTime[]{} );
TableWithTimeArrays tableRecord = tq.getSingleResult();... | @author Jordan Gigov
@author Christian Beikov | testQuery | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@Test
public void testNativeQueryById(SessionFactoryScope scope) {
scope.inSession( em -> {
TypedQuery<TableWithTimeArrays> tq = em.createNamedQuery( "TableWithTimeArrays.Native.getById", TableWithTimeArrays.class );
tq.setParameter( "id", 2L );
TableWithTimeArrays tableRecord = tq.getSingleResult();
ass... | @author Jordan Gigov
@author Christian Beikov | testNativeQueryById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@Test
@SkipForDialect(dialectClass = HSQLDialect.class, reason = "HSQL does not like plain parameters in the distinct from predicate")
@SkipForDialect(dialectClass = OracleDialect.class, reason = "Oracle requires a special function to compare XML")
@SkipForDialect(dialectClass = DB2Dialect.class, reason = "DB2 requi... | @author Jordan Gigov
@author Christian Beikov | testNativeQuery | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@Test
@RequiresDialectFeature(feature = DialectFeatureChecks.SupportsTypedArrays.class)
public void testNativeQueryUntyped(SessionFactoryScope scope) {
scope.inSession( em -> {
Query q = em.createNamedQuery( "TableWithTimeArrays.Native.getByIdUntyped" );
q.setParameter( "id", 2L );
Object[] tuple = (Object... | @author Jordan Gigov
@author Christian Beikov | testNativeQueryUntyped | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
public Long getId() {
return id;
} | @author Jordan Gigov
@author Christian Beikov | getId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
public void setId(Long id) {
this.id = id;
} | @author Jordan Gigov
@author Christian Beikov | setId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
public LocalTime[] getTheArray() {
return theArray;
} | @author Jordan Gigov
@author Christian Beikov | getTheArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
public void setTheArray(LocalTime[] theArray) {
this.theArray = theArray;
} | @author Jordan Gigov
@author Christian Beikov | setTheArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimeArrayTest.java | Apache-2.0 |
@BeforeAll
public void startUp(SessionFactoryScope scope) {
scope.inTransaction( em -> {
arrayType = em.getTypeConfiguration().getBasicTypeForJavaType( LocalDateTime[].class );
// Unix epoch start if you're in the UK
time1 = LocalDateTime.of( 1970, Month.JANUARY, 1, 0, 0, 0, 0 );
// pre-Y2K
time2 = Lo... | @author Jordan Gigov
@author Christian Beikov | startUp | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@Test
public void testById(SessionFactoryScope scope) {
scope.inSession( em -> {
TableWithTimestampArrays tableRecord;
tableRecord = em.find( TableWithTimestampArrays.class, 1L );
assertThat( tableRecord.getTheArray(), is( new LocalDateTime[]{} ) );
tableRecord = em.find( TableWithTimestampArrays.class,... | @author Jordan Gigov
@author Christian Beikov | testById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@Test
public void testQueryById(SessionFactoryScope scope) {
scope.inSession( em -> {
TypedQuery<TableWithTimestampArrays> tq = em.createNamedQuery( "TableWithTimestampArrays.JPQL.getById", TableWithTimestampArrays.class );
tq.setParameter( "id", 2L );
TableWithTimestampArrays tableRecord = tq.getSingleResu... | @author Jordan Gigov
@author Christian Beikov | testQueryById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@Test
public void testQuery(SessionFactoryScope scope) {
scope.inSession( em -> {
TypedQuery<TableWithTimestampArrays> tq = em.createNamedQuery( "TableWithTimestampArrays.JPQL.getByData", TableWithTimestampArrays.class );
tq.setParameter( "data", new LocalDateTime[]{} );
TableWithTimestampArrays tableRecord... | @author Jordan Gigov
@author Christian Beikov | testQuery | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@Test
public void testNativeQueryById(SessionFactoryScope scope) {
scope.inSession( em -> {
TypedQuery<TableWithTimestampArrays> tq = em.createNamedQuery( "TableWithTimestampArrays.Native.getById", TableWithTimestampArrays.class );
tq.setParameter( "id", 2L );
TableWithTimestampArrays tableRecord = tq.getSi... | @author Jordan Gigov
@author Christian Beikov | testNativeQueryById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@Test
@SkipForDialect(dialectClass = HSQLDialect.class, reason = "HSQL does not like plain parameters in the distinct from predicate")
@SkipForDialect(dialectClass = OracleDialect.class, reason = "Oracle requires a special function to compare XML")
@SkipForDialect(dialectClass = DB2Dialect.class, reason = "DB2 requi... | @author Jordan Gigov
@author Christian Beikov | testNativeQuery | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@Test
@RequiresDialectFeature(feature = DialectFeatureChecks.SupportsTypedArrays.class)
public void testNativeQueryUntyped(SessionFactoryScope scope) {
scope.inSession( em -> {
Query q = em.createNamedQuery( "TableWithTimestampArrays.Native.getByIdUntyped" );
q.setParameter( "id", 2L );
Object[] tuple = (O... | @author Jordan Gigov
@author Christian Beikov | testNativeQueryUntyped | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
public Long getId() {
return id;
} | @author Jordan Gigov
@author Christian Beikov | getId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
public void setId(Long id) {
this.id = id;
} | @author Jordan Gigov
@author Christian Beikov | setId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
public LocalDateTime[] getTheArray() {
return theArray;
} | @author Jordan Gigov
@author Christian Beikov | getTheArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
public void setTheArray(LocalDateTime[] theArray) {
this.theArray = theArray;
} | @author Jordan Gigov
@author Christian Beikov | setTheArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/TimestampArrayTest.java | Apache-2.0 |
@BeforeAll
void setUp(SessionFactoryScope scope) {
scope.inTransaction( session -> {
EntityWithArrays entity;
// boolean[]
entity = new EntityWithArrays();
entity.setId( 1L );
entity.setBoolArray( new boolean[] { true, false } );
session.persist( entity );
entity = new EntityWithArrays();
en... | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setUp | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
Stream<Arguments> perTypeArguments() {
return Stream.of(
Arguments.of(
"boolArray", 1, new boolean[] { true, false },
(Function<EntityWithArrays, boolean[]>) EntityWithArrays::getBoolArray
),
Arguments.of(
"byteArray", 3, new byte[] { 1, 2 },
(Function<EntityWithArrays, byte[]>) En... | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | perTypeArguments | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
@ParameterizedTest
@MethodSource("perTypeArguments")
<T> void loadById(String propertyName, long id, T value, Function<EntityWithArrays, T> getter,
SessionFactoryScope scope) {
scope.inTransaction( session -> {
EntityWithArrays entity = session.byId( EntityWithArrays.class ).load( id );
assertThat( entity ... | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | loadById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
@ParameterizedTest
@MethodSource("perTypeArguments")
<T> void queryById(String propertyName, long id, T value, Function<EntityWithArrays, T> getter,
SessionFactoryScope scope) {
scope.inTransaction( session -> {
TypedQuery<EntityWithArrays> tq = session.createQuery(
"SELECT e FROM EntityWithArrays e WHER... | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | queryById | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
@ParameterizedTest
@MethodSource("perTypeArguments")
@SkipForDialect( dialectClass = HANADialect.class, matchSubTypes = true, reason = "For some reason, HANA can't intersect VARBINARY values, but funnily can do a union...")
<T> void queryByData(String propertyName, long id, T value, Function<EntityWithArrays, T> get... | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | queryByData | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public Long getId() {
return id;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setId(Long id) {
this.id = id;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public boolean[] getBoolArray() {
return boolArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getBoolArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setBoolArray(boolean[] boolArray) {
this.boolArray = boolArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setBoolArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public byte[] getByteArray() {
return byteArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getByteArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setByteArray(byte[] byteArray) {
this.byteArray = byteArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setByteArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public char[] getCharArray() {
return charArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getCharArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setCharArray(char[] charArray) {
this.charArray = charArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setCharArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public double[] getDoubleArray() {
return doubleArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getDoubleArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setDoubleArray(double[] doubleArray) {
this.doubleArray = doubleArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setDoubleArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public float[] getFloatArray() {
return floatArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getFloatArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setFloatArray(float[] floatArray) {
this.floatArray = floatArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setFloatArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public int[] getIntArray() {
return intArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getIntArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setIntArray(int[] intArray) {
this.intArray = intArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setIntArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public long[] getLongArray() {
return longArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getLongArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setLongArray(long[] longArray) {
this.longArray = longArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setLongArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public short[] getShortArray() {
return shortArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getShortArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setShortArray(short[] shortArray) {
this.shortArray = shortArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setShortArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public Serializable[] getSerializableArray() {
return serializableArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | getSerializableArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
public void setSerializableArray(Serializable[] serializableArray) {
this.serializableArray = serializableArray;
} | Test mapping arrays with {@code @JdbcTypeCode(Type.VARBINARY)},
which is useful to revert to pre-6.1 behavior for array mapping in particular. | setSerializableArray | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/VarbinaryArrayTest.java | Apache-2.0 |
@Override
public int getSqlType() {
return SqlTypes.VARCHAR;
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | getSqlType | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public Class<CustomData[]> returnedClass() {
return CustomData[].class;
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | returnedClass | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public boolean equals(CustomData[] x, CustomData[] y) {
return Arrays.equals(x, y);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | equals | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public int hashCode(CustomData[] x) {
return Arrays.hashCode(x);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | hashCode | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public CustomData[] nullSafeGet(ResultSet rs, int position, WrapperOptions options)
throws SQLException {
final var customDataStr = rs.getString(position);
return rs.wasNull() ? new CustomData[0] : parseDataFromString(customDataStr);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | nullSafeGet | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public void nullSafeSet(PreparedStatement st, CustomData[] value, int index, WrapperOptions options)
throws SQLException {
if (value == null || value.length == 0) {
st.setNull(index, Types.VARCHAR);
} else {
final var str =
Stream.of(value).map(u -> String.format("%s|%s", u.getText(), u.ge... | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | nullSafeSet | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public CustomData[] deepCopy(CustomData[] value) {
return Arrays.copyOf(value, value.length);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | deepCopy | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public boolean isMutable() {
return true;
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | isMutable | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public Serializable disassemble(CustomData[] value) {
return deepCopy(value);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | disassemble | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
@Override
public CustomData[] assemble(Serializable cached, Object owner) {
return deepCopy((CustomData[]) cached);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | assemble | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
private CustomData[] parseDataFromString(String value) {
return Arrays.stream(value.split(",")).map(singleValue -> {
final var params = singleValue.split("\\|");
return new CustomData(params[0], Long.parseLong(params[1]));
}).toArray(CustomData[]::new);
} | Custom type implementing {@link UserType} so <code>CustomData[]</code> can be converted. | parseDataFromString | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/CustomDataType.java | Apache-2.0 |
public Long getId() {
return id;
} | Some entity, important is the property <code>customData</code>. | getId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | Apache-2.0 |
public void setId(Long id) {
this.id = id;
} | Some entity, important is the property <code>customData</code>. | setId | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | Apache-2.0 |
public CustomData[] getCustomData() {
return customData;
} | Some entity, important is the property <code>customData</code>. | getCustomData | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | Apache-2.0 |
public void setCustomData(CustomData[] custom) {
this.customData = custom;
} | Some entity, important is the property <code>customData</code>. | setCustomData | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/SomeEntity.java | Apache-2.0 |
@Override
public void contribute(TypeContributions typeContributions, ServiceRegistry serviceRegistry) {
typeContributions.contributeType(CustomDataType.INSTANCE);
} | Registering custom user type {@link CustomDataType}. | contribute | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/TypesContributor.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/type/contributor/usertype/hhh18787/TypesContributor.java | Apache-2.0 |
@AfterEach
public void tearDown(SessionFactoryScope scope) {
scope.inTransaction(
session ->
session.createQuery( "delete from Widget" ).executeUpdate()
);
} | Test for parameterizable types.
@author Michael Gloegl | tearDown | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | Apache-2.0 |
@Test
public void testSave(SessionFactoryScope scope) {
final Integer id = (Integer) scope.fromTransaction(
session -> {
Widget obj = new Widget();
obj.setValueThree( 5 );
session.persist( obj );
return obj.getId();
}
);
scope.inSession(
session ->
doWork( id, session )
)... | Test for parameterizable types.
@author Michael Gloegl | testSave | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | Apache-2.0 |
private void doWork(final Integer id, final Session s) {
s.doWork(
new Work() {
@Override
public void execute(Connection connection) throws SQLException {
final String sql = "SELECT * FROM STRANGE_TYPED_OBJECT WHERE id=?";
PreparedStatement statement = ( (SessionImplementor) s ).getJdbcCoord... | Test for parameterizable types.
@author Michael Gloegl | doWork | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | Apache-2.0 |
@Override
public void execute(Connection connection) throws SQLException {
final String sql = "SELECT * FROM STRANGE_TYPED_OBJECT WHERE id=?";
PreparedStatement statement = ( (SessionImplementor) s ).getJdbcCoordinator()
.getStatementPreparer()
.prepareStatement( sql );
statement.... | Test for parameterizable types.
@author Michael Gloegl | execute | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | Apache-2.0 |
@Test
public void testLoading(SessionFactoryScope scope) throws Exception {
initData( scope );
scope.inTransaction(
session -> {
Widget obj = (Widget) session.createQuery( "from Widget o where o.string = :string" ).setParameter(
"string",
"all-normal"
).uniqueResult();
assertEquals... | Test for parameterizable types.
@author Michael Gloegl | testLoading | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | Apache-2.0 |
public void initData(SessionFactoryScope scope) {
scope.inTransaction(
session -> {
Widget obj = new Widget();
obj.setValueOne( 7 );
obj.setValueTwo( 8 );
obj.setValueThree( 9 );
obj.setValueFour( 10 );
obj.setString( "all-normal" );
session.persist( obj );
obj = new Widge... | Test for parameterizable types.
@author Michael Gloegl | initData | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/typeparameters/TypeParameterTest.java | Apache-2.0 |
public void setSpecies(String species) {
this.species = species;
} | @param species The species to set. | setSpecies | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | Apache-2.0 |
public Hive getHive() {
return hive;
} | @param species The species to set. | getHive | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | Apache-2.0 |
public void setHive(Hive hive) {
this.hive = hive;
} | @param species The species to set. | setHive | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | Apache-2.0 |
public List getHivemates() {
return hivemates;
} | @param species The species to set. | getHivemates | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | Apache-2.0 |
public void setHivemates(List hivemates) {
this.hivemates = hivemates;
} | @param species The species to set. | setHivemates | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Alien.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/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public void setIdentity(String identity) {
this.identity = identity;
} | @param identity The identity to set. | setIdentity | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public void setLocation(Location location) {
this.location = location;
} | @param location The location to set. | setLocation | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public String getSpecies() {
return null;
} | @param location The location to set. | getSpecies | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public List getThings() {
return things;
} | @param location The location to set. | getThings | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public void setThings(List things) {
this.things = things;
} | @param location The location to set. | setThings | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public Map getInfo() {
return info;
} | @param location The location to set. | getInfo | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | Apache-2.0 |
public void setInfo(Map info) {
this.info = info;
} | @param location The location to set. | setInfo | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Being.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/unionsubclass/Human.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Human.java | Apache-2.0 |
public String getSpecies() {
return "human";
} | @param sex The sex to set. | getSpecies | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Human.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Human.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/unionsubclass/Location.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Location.java | Apache-2.0 |
public void setName(String name) {
this.name = name;
} | @param name The name to set. | setName | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Location.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Location.java | Apache-2.0 |
public void setBeings(Collection beings) {
this.beings = beings;
} | @param beings The beings to set. | setBeings | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Location.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Location.java | Apache-2.0 |
public void setDescription(String description) {
this.description = description;
} | @param description The description to set. | setDescription | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Thing.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Thing.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/unionsubclass/Thing.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Thing.java | Apache-2.0 |
public void setOwner(Being owner) {
this.owner = owner;
} | @param owner The owner to set. | setOwner | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Thing.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass/Thing.java | Apache-2.0 |
public void setSalesperson(Employee salesperson) {
this.salesperson = salesperson;
} | @param salesperson The salesperson to set. | setSalesperson | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Customer.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Customer.java | Apache-2.0 |
public void setComments(String comments) {
this.comments = comments;
} | @param comments The comments to set. | setComments | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Customer.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Customer.java | Apache-2.0 |
public void setTitle(String title) {
this.title = title;
} | @param title The title to set. | setTitle | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | Apache-2.0 |
public void setManager(Employee manager) {
this.manager = manager;
} | @param manager The manager to set. | setManager | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | Apache-2.0 |
public void setSalary(BigDecimal salary) {
this.salary = salary;
} | @param salary The salary to set. | setSalary | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | Apache-2.0 |
public double getPasswordExpiryDays() {
return passwordExpiryDays;
} | @return The password expiry policy in days. | getPasswordExpiryDays | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | Apache-2.0 |
public void setPasswordExpiryDays(double passwordExpiryDays) {
this.passwordExpiryDays = passwordExpiryDays;
} | @param passwordExpiryDays The password expiry policy in days. | setPasswordExpiryDays | java | hibernate/hibernate-orm | hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Employee.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/unionsubclass2/Person.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/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/unionsubclass2/Person.java | https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/test/java/org/hibernate/orm/test/unionsubclass2/Person.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.