mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-12 22:24:47 +00:00
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 @@
|
|||||||
* Tuplizer implementation.
|
* Tuplizer implementation.
|
||||||
*/
|
*/
|
||||||
Class impl();
|
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 @@ private static void setupComponentTuplizer(XProperty property, Component compone
|
|||||||
}
|
}
|
||||||
if ( property.isAnnotationPresent( Tuplizers.class ) ) {
|
if ( property.isAnnotationPresent( Tuplizers.class ) ) {
|
||||||
for ( Tuplizer tuplizer : property.getAnnotation( Tuplizers.class ).value() ) {
|
for ( Tuplizer tuplizer : property.getAnnotation( Tuplizers.class ).value() ) {
|
||||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
component.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||||
//todo tuplizer.entityModeType
|
|
||||||
component.addTuplizer( mode, tuplizer.impl().getName() );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( property.isAnnotationPresent( Tuplizer.class ) ) {
|
if ( property.isAnnotationPresent( Tuplizer.class ) ) {
|
||||||
Tuplizer tuplizer = property.getAnnotation( Tuplizer.class );
|
Tuplizer tuplizer = property.getAnnotation( Tuplizer.class );
|
||||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
component.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||||
//todo tuplizer.entityModeType
|
|
||||||
component.addTuplizer( mode, tuplizer.impl().getName() );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@
|
|||||||
import org.hibernate.boot.model.naming.ImplicitEntityNameSource;
|
import org.hibernate.boot.model.naming.ImplicitEntityNameSource;
|
||||||
import org.hibernate.boot.model.naming.NamingStrategyHelper;
|
import org.hibernate.boot.model.naming.NamingStrategyHelper;
|
||||||
import org.hibernate.boot.model.relational.QualifiedTableName;
|
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.InFlightMetadataCollector;
|
||||||
import org.hibernate.boot.spi.MetadataBuildingContext;
|
import org.hibernate.boot.spi.MetadataBuildingContext;
|
||||||
import org.hibernate.cfg.AccessType;
|
import org.hibernate.cfg.AccessType;
|
||||||
@ -369,16 +368,12 @@ public void bindEntity() {
|
|||||||
//tuplizers
|
//tuplizers
|
||||||
if ( annotatedClass.isAnnotationPresent( Tuplizers.class ) ) {
|
if ( annotatedClass.isAnnotationPresent( Tuplizers.class ) ) {
|
||||||
for (Tuplizer tuplizer : annotatedClass.getAnnotation( Tuplizers.class ).value()) {
|
for (Tuplizer tuplizer : annotatedClass.getAnnotation( Tuplizers.class ).value()) {
|
||||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
persistentClass.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||||
//todo tuplizer.entityModeType
|
|
||||||
persistentClass.addTuplizer( mode, tuplizer.impl().getName() );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( annotatedClass.isAnnotationPresent( Tuplizer.class ) ) {
|
if ( annotatedClass.isAnnotationPresent( Tuplizer.class ) ) {
|
||||||
Tuplizer tuplizer = annotatedClass.getAnnotation( Tuplizer.class );
|
Tuplizer tuplizer = annotatedClass.getAnnotation( Tuplizer.class );
|
||||||
EntityMode mode = EntityMode.parse( tuplizer.entityMode() );
|
persistentClass.addTuplizer( EntityMode.POJO, tuplizer.impl().getName() );
|
||||||
//todo tuplizer.entityModeType
|
|
||||||
persistentClass.addTuplizer( mode, tuplizer.impl().getName() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( Filter filter : filters ) {
|
for ( Filter filter : filters ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user