HHH-7484 Removing obsolete //$Id$ and adding missing license headers (no functional changes)
This commit is contained in:
parent
7f3ad01b50
commit
672368931f
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Lob;
|
import javax.persistence.Lob;
|
||||||
import javax.persistence.MappedSuperclass;
|
import javax.persistence.MappedSuperclass;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Lob;
|
import javax.persistence.Lob;
|
||||||
import javax.persistence.MappedSuperclass;
|
import javax.persistence.MappedSuperclass;
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,10 @@ public abstract class AbstractLobTest<B extends AbstractBook, C extends Abstract
|
||||||
return getCompiledCodeClass().newInstance();
|
return getCompiledCodeClass().newInstance();
|
||||||
}
|
}
|
||||||
catch ( Exception ex ) {
|
catch ( Exception ex ) {
|
||||||
throw new RuntimeException( "Could not create an instance of type " + getCompiledCodeClass().getName(), ex );
|
throw new RuntimeException(
|
||||||
|
"Could not create an instance of type " + getCompiledCodeClass().getName(),
|
||||||
|
ex
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,29 @@
|
||||||
//$Id$
|
/*
|
||||||
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2009, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
|
*
|
||||||
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
//$Id: $
|
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
*
|
*
|
||||||
|
@ -24,6 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
||||||
import org.hibernate.type.descriptor.java.CharacterArrayTypeDescriptor;
|
import org.hibernate.type.descriptor.java.CharacterArrayTypeDescriptor;
|
||||||
import org.hibernate.type.descriptor.sql.LongVarcharTypeDescriptor;
|
import org.hibernate.type.descriptor.sql.LongVarcharTypeDescriptor;
|
||||||
|
|
|
@ -1,5 +1,29 @@
|
||||||
//$Id$
|
/*
|
||||||
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
|
*
|
||||||
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
|
|
@ -1,4 +1,29 @@
|
||||||
|
/*
|
||||||
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
|
*
|
||||||
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class Dog implements Serializable {
|
public class Dog implements Serializable {
|
||||||
|
|
|
@ -1,5 +1,29 @@
|
||||||
//$Id$
|
/*
|
||||||
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
|
*
|
||||||
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
//$Id: $
|
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
*
|
*
|
||||||
|
@ -24,6 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
@ -31,7 +31,7 @@ import javax.persistence.Id;
|
||||||
/**
|
/**
|
||||||
* An entity containing data that is materialized into a byte array immediately.
|
* An entity containing data that is materialized into a byte array immediately.
|
||||||
* The hibernate type mapped for {@link #longByteArray} determines the SQL type
|
* The hibernate type mapped for {@link #longByteArray} determines the SQL type
|
||||||
* asctually used.
|
* actually used.
|
||||||
*
|
*
|
||||||
* @author Gail Badner
|
* @author Gail Badner
|
||||||
*/
|
*/
|
||||||
|
@ -60,6 +60,7 @@ public class ImageHolder {
|
||||||
public void setLongByteArray(byte[] longByteArray) {
|
public void setLongByteArray(byte[] longByteArray) {
|
||||||
this.longByteArray = longByteArray;
|
this.longByteArray = longByteArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
@org.hibernate.annotations.Type(type = "serializable_image")
|
@org.hibernate.annotations.Type(type = "serializable_image")
|
||||||
public Dog getDog() {
|
public Dog getDog() {
|
||||||
return dog;
|
return dog;
|
||||||
|
@ -68,6 +69,7 @@ public class ImageHolder {
|
||||||
public void setDog(Dog dog) {
|
public void setDog(Dog dog) {
|
||||||
this.dog = dog;
|
this.dog = dog;
|
||||||
}
|
}
|
||||||
|
|
||||||
@org.hibernate.annotations.Type(type = "wrapped_image")
|
@org.hibernate.annotations.Type(type = "wrapped_image")
|
||||||
public Byte[] getPicByteArray() {
|
public Byte[] getPicByteArray() {
|
||||||
return picByteArray;
|
return picByteArray;
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//$Id$
|
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
*
|
*
|
||||||
* Copyright (c) 2010, Red Hat Inc. or third-party contributors as
|
* Copyright (c) 2008, Red Hat Inc. or third-party contributors as
|
||||||
* indicated by the @author tags or express copyright attribution
|
* indicated by the @author tags or express copyright attribution
|
||||||
* statements applied by the authors. All third-party contributions are
|
* statements applied by the authors. All third-party contributions are
|
||||||
* distributed under license by Red Hat Inc.
|
* distributed under license by Red Hat Inc.
|
||||||
|
@ -25,14 +24,12 @@
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import org.hibernate.testing.DialectChecks;
|
import org.hibernate.testing.DialectChecks;
|
||||||
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
|
|
||||||
import org.hibernate.testing.RequiresDialectFeature;
|
import org.hibernate.testing.RequiresDialectFeature;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Emmanuel Bernard
|
* @author Emmanuel Bernard
|
||||||
*/
|
*/
|
||||||
@RequiresDialectFeature(DialectChecks.SupportsExpectedLobUsagePattern.class)
|
@RequiresDialectFeature(DialectChecks.SupportsExpectedLobUsagePattern.class)
|
||||||
@FailureExpectedWithNewMetamodel
|
|
||||||
public class LobTest extends AbstractLobTest<Book, CompiledCode> {
|
public class LobTest extends AbstractLobTest<Book, CompiledCode> {
|
||||||
@Override
|
@Override
|
||||||
protected Class<Book> getBookClass() {
|
protected Class<Book> getBookClass() {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
//$Id: $
|
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
*
|
*
|
||||||
|
@ -24,6 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
@ -62,6 +62,7 @@ public class LongStringHolder {
|
||||||
public void setLongString(String longString) {
|
public void setLongString(String longString) {
|
||||||
this.longString = longString;
|
this.longString = longString;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Type(type = "char_text")
|
@Type(type = "char_text")
|
||||||
public char[] getName() {
|
public char[] getName() {
|
||||||
return name;
|
return name;
|
||||||
|
@ -70,6 +71,7 @@ public class LongStringHolder {
|
||||||
public void setName(char[] name) {
|
public void setName(char[] name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Type(type = "wrapped_char_text")
|
@Type(type = "wrapped_char_text")
|
||||||
public Character[] getWhatEver() {
|
public Character[] getWhatEver() {
|
||||||
return whatEver;
|
return whatEver;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import javax.persistence.GenerationType;
|
||||||
|
|
|
@ -51,8 +51,12 @@ public class MaterializedBlobTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTypeSelection() {
|
public void testTypeSelection() {
|
||||||
int index = sessionFactory().getEntityPersister( MaterializedBlobEntity.class.getName() ).getEntityMetamodel().getPropertyIndex( "theBytes" );
|
int index = sessionFactory().getEntityPersister( MaterializedBlobEntity.class.getName() )
|
||||||
Type type = sessionFactory().getEntityPersister( MaterializedBlobEntity.class.getName() ).getEntityMetamodel().getProperties()[index].getType();
|
.getEntityMetamodel()
|
||||||
|
.getPropertyIndex( "theBytes" );
|
||||||
|
Type type = sessionFactory().getEntityPersister( MaterializedBlobEntity.class.getName() )
|
||||||
|
.getEntityMetamodel()
|
||||||
|
.getProperties()[index].getType();
|
||||||
assertEquals( MaterializedBlobType.INSTANCE, type );
|
assertEquals( MaterializedBlobType.INSTANCE, type );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
//$Id: $
|
|
||||||
/*
|
/*
|
||||||
* Hibernate, Relational Persistence for Idiomatic Java
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
*
|
*
|
||||||
|
@ -24,6 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
||||||
import org.hibernate.type.descriptor.java.PrimitiveCharacterArrayTypeDescriptor;
|
import org.hibernate.type.descriptor.java.PrimitiveCharacterArrayTypeDescriptor;
|
||||||
import org.hibernate.type.descriptor.sql.LongVarcharTypeDescriptor;
|
import org.hibernate.type.descriptor.sql.LongVarcharTypeDescriptor;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
||||||
|
@ -39,7 +40,10 @@ public class SerializableToImageType extends AbstractSingleColumnStandardBasicTy
|
||||||
public static final PrimitiveCharacterArrayTextType INSTANCE = new PrimitiveCharacterArrayTextType();
|
public static final PrimitiveCharacterArrayTextType INSTANCE = new PrimitiveCharacterArrayTextType();
|
||||||
|
|
||||||
public SerializableToImageType() {
|
public SerializableToImageType() {
|
||||||
super( LongVarbinaryTypeDescriptor.INSTANCE, new SerializableTypeDescriptor<Serializable>( Serializable.class ) );
|
super(
|
||||||
|
LongVarbinaryTypeDescriptor.INSTANCE,
|
||||||
|
new SerializableTypeDescriptor<Serializable>( Serializable.class )
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
|
|
|
@ -67,8 +67,10 @@ public class TextTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
s = openSession();
|
s = openSession();
|
||||||
s.beginTransaction();
|
s.beginTransaction();
|
||||||
entity = (LongStringHolder) s.get(LongStringHolder.class, entity
|
entity = ( LongStringHolder ) s.get(
|
||||||
.getId());
|
LongStringHolder.class, entity
|
||||||
|
.getId()
|
||||||
|
);
|
||||||
assertNull( entity.getLongString() );
|
assertNull( entity.getLongString() );
|
||||||
assertNull( entity.getName() );
|
assertNull( entity.getName() );
|
||||||
assertNull( entity.getWhatEver() );
|
assertNull( entity.getWhatEver() );
|
||||||
|
@ -80,8 +82,10 @@ public class TextTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
s = openSession();
|
s = openSession();
|
||||||
s.beginTransaction();
|
s.beginTransaction();
|
||||||
entity = (LongStringHolder) s.get(LongStringHolder.class, entity
|
entity = ( LongStringHolder ) s.get(
|
||||||
.getId());
|
LongStringHolder.class, entity
|
||||||
|
.getId()
|
||||||
|
);
|
||||||
Assert.assertEquals( LONG_STRING_SIZE, entity.getLongString().length() );
|
Assert.assertEquals( LONG_STRING_SIZE, entity.getLongString().length() );
|
||||||
Assert.assertEquals( original, entity.getLongString() );
|
Assert.assertEquals( original, entity.getLongString() );
|
||||||
Assert.assertNotNull( entity.getName() );
|
Assert.assertNotNull( entity.getName() );
|
||||||
|
@ -98,8 +102,10 @@ public class TextTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
s = openSession();
|
s = openSession();
|
||||||
s.beginTransaction();
|
s.beginTransaction();
|
||||||
entity = (LongStringHolder) s.get(LongStringHolder.class, entity
|
entity = ( LongStringHolder ) s.get(
|
||||||
.getId());
|
LongStringHolder.class, entity
|
||||||
|
.getId()
|
||||||
|
);
|
||||||
Assert.assertEquals( LONG_STRING_SIZE, entity.getLongString().length() );
|
Assert.assertEquals( LONG_STRING_SIZE, entity.getLongString().length() );
|
||||||
Assert.assertEquals( changed, entity.getLongString() );
|
Assert.assertEquals( changed, entity.getLongString() );
|
||||||
Assert.assertNotNull( entity.getName() );
|
Assert.assertNotNull( entity.getName() );
|
||||||
|
@ -116,8 +122,10 @@ public class TextTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
s = openSession();
|
s = openSession();
|
||||||
s.beginTransaction();
|
s.beginTransaction();
|
||||||
entity = (LongStringHolder) s.get(LongStringHolder.class, entity
|
entity = ( LongStringHolder ) s.get(
|
||||||
.getId());
|
LongStringHolder.class, entity
|
||||||
|
.getId()
|
||||||
|
);
|
||||||
assertNull( entity.getLongString() );
|
assertNull( entity.getLongString() );
|
||||||
assertNull( entity.getName() );
|
assertNull( entity.getName() );
|
||||||
assertNull( entity.getWhatEver() );
|
assertNull( entity.getWhatEver() );
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.annotations.lob;
|
package org.hibernate.test.annotations.lob;
|
||||||
|
|
||||||
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
import org.hibernate.type.AbstractSingleColumnStandardBasicType;
|
||||||
import org.hibernate.type.descriptor.java.ByteArrayTypeDescriptor;
|
import org.hibernate.type.descriptor.java.ByteArrayTypeDescriptor;
|
||||||
import org.hibernate.type.descriptor.sql.LongVarbinaryTypeDescriptor;
|
import org.hibernate.type.descriptor.sql.LongVarbinaryTypeDescriptor;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Test package for metatata facilities
|
* Test package for metadata facilities
|
||||||
* It contains an example of filter metadata
|
* It contains an example of filter metadata
|
||||||
*/
|
*/
|
||||||
@TypeDefs(
|
@TypeDefs(
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
typeClass = org.hibernate.test.annotations.lob.SerializableToImageType.class
|
typeClass = org.hibernate.test.annotations.lob.SerializableToImageType.class
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
) package org.hibernate.test.annotations.lob;
|
||||||
package org.hibernate.test.annotations.lob;
|
|
||||||
import org.hibernate.annotations.TypeDef;
|
import org.hibernate.annotations.TypeDef;
|
||||||
import org.hibernate.annotations.TypeDefs;
|
import org.hibernate.annotations.TypeDefs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue