get rid of useless members of @Tuplizer annotation
Get rid of both the deprecated way and the unimplemented (!) way of doing something that was never useful to begin with.
This commit is contained in:
parent
3b3487a74e
commit
9dcbe4c2d1
|
@ -29,16 +29,4 @@ public @interface Tuplizer {
|
|||
* Tuplizer implementation.
|
||||
*/
|
||||
Class impl();
|
||||
|
||||
/**
|
||||
* either pojo, dynamic-map or dom4j.
|
||||
* @deprecated should use #entityModeType instead
|
||||
*/
|
||||
@Deprecated
|
||||
String entityMode() default "pojo";
|
||||
|
||||
/**
|
||||
* The entity mode.
|
||||
*/
|
||||
EntityMode entityModeType() default EntityMode.POJO;
|
||||
}
|
||||
|
|
|
@ -3078,16 +3078,12 @@ public final class AnnotationBinder {
|
|||
}
|
||||
if ( property.isAnnotationPresent( Tuplizers.class ) ) {
|
||||
for ( Tuplizer tuplizer : property.getAnnotation( Tuplizers.class ).value() ) {
|
||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
||||
//todo tuplizer.entityModeType
|
||||
component.addTuplizer( mode, tuplizer.impl().getName() );
|
||||
component.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||
}
|
||||
}
|
||||
if ( property.isAnnotationPresent( Tuplizer.class ) ) {
|
||||
Tuplizer tuplizer = property.getAnnotation( Tuplizer.class );
|
||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
||||
//todo tuplizer.entityModeType
|
||||
component.addTuplizer( mode, tuplizer.impl().getName() );
|
||||
component.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,6 @@ import org.hibernate.boot.model.naming.Identifier;
|
|||
import org.hibernate.boot.model.naming.ImplicitEntityNameSource;
|
||||
import org.hibernate.boot.model.naming.NamingStrategyHelper;
|
||||
import org.hibernate.boot.model.relational.QualifiedTableName;
|
||||
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
|
||||
import org.hibernate.boot.spi.InFlightMetadataCollector;
|
||||
import org.hibernate.boot.spi.MetadataBuildingContext;
|
||||
import org.hibernate.cfg.AccessType;
|
||||
|
@ -369,16 +368,12 @@ public class EntityBinder {
|
|||
//tuplizers
|
||||
if ( annotatedClass.isAnnotationPresent( Tuplizers.class ) ) {
|
||||
for (Tuplizer tuplizer : annotatedClass.getAnnotation( Tuplizers.class ).value()) {
|
||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
||||
//todo tuplizer.entityModeType
|
||||
persistentClass.addTuplizer( mode, tuplizer.impl().getName() );
|
||||
persistentClass.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||
}
|
||||
}
|
||||
if ( annotatedClass.isAnnotationPresent( Tuplizer.class ) ) {
|
||||
Tuplizer tuplizer = annotatedClass.getAnnotation( Tuplizer.class );
|
||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
||||
//todo tuplizer.entityModeType
|
||||
persistentClass.addTuplizer( mode, tuplizer.impl().getName() );
|
||||
persistentClass.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||
}
|
||||
|
||||
for ( Filter filter : filters ) {
|
||||
|
|
Loading…
Reference in New Issue