public class org.hibernate.cfg.ToOneFkSecondPass extends org.hibernate.cfg.FkSecondPass
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.cfg.ToOneFkSecondPass
super_class: org.hibernate.cfg.FkSecondPass
{
private org.hibernate.boot.spi.MetadataBuildingContext buildingContext;
descriptor: Lorg/hibernate/boot/spi/MetadataBuildingContext;
flags: (0x0002) ACC_PRIVATE
private boolean unique;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String entityClassName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.hibernate.mapping.ToOne, org.hibernate.cfg.Ejb3JoinColumn[], boolean, java.lang.String, java.lang.String, org.hibernate.boot.spi.MetadataBuildingContext);
descriptor: (Lorg/hibernate/mapping/ToOne;[Lorg/hibernate/cfg/Ejb3JoinColumn;ZLjava/lang/String;Ljava/lang/String;Lorg/hibernate/boot/spi/MetadataBuildingContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
invokespecial org.hibernate.cfg.FkSecondPass.<init>:(Lorg/hibernate/mapping/SimpleValue;[Lorg/hibernate/cfg/Ejb3JoinColumn;)V
1: aload 0
aload 6
putfield org.hibernate.cfg.ToOneFkSecondPass.buildingContext:Lorg/hibernate/boot/spi/MetadataBuildingContext;
2: aload 0
iload 3
putfield org.hibernate.cfg.ToOneFkSecondPass.unique:Z
3: aload 0
aload 4
putfield org.hibernate.cfg.ToOneFkSecondPass.entityClassName:Ljava/lang/String;
4: aload 0
aload 4
ifnull 5
aload 5
aload 4
invokevirtual java.lang.String.length:()I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 6
StackMap locals: org.hibernate.cfg.ToOneFkSecondPass org.hibernate.mapping.ToOne org.hibernate.cfg.Ejb3JoinColumn[] int java.lang.String java.lang.String org.hibernate.boot.spi.MetadataBuildingContext
StackMap stack: org.hibernate.cfg.ToOneFkSecondPass
5: aload 5
StackMap locals: org.hibernate.cfg.ToOneFkSecondPass org.hibernate.mapping.ToOne org.hibernate.cfg.Ejb3JoinColumn[] int java.lang.String java.lang.String org.hibernate.boot.spi.MetadataBuildingContext
StackMap stack: org.hibernate.cfg.ToOneFkSecondPass java.lang.String
6: putfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
7: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/hibernate/cfg/ToOneFkSecondPass;
0 8 1 value Lorg/hibernate/mapping/ToOne;
0 8 2 columns [Lorg/hibernate/cfg/Ejb3JoinColumn;
0 8 3 unique Z
0 8 4 entityClassName Ljava/lang/String;
0 8 5 path Ljava/lang/String;
0 8 6 buildingContext Lorg/hibernate/boot/spi/MetadataBuildingContext;
MethodParameters:
Name Flags
value
columns
unique
entityClassName
path
buildingContext
public java.lang.String getReferencedEntityName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.value:Lorg/hibernate/mapping/SimpleValue;
checkcast org.hibernate.mapping.ToOne
invokevirtual org.hibernate.mapping.ToOne.getReferencedEntityName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/ToOneFkSecondPass;
public boolean isInPrimaryKey();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.entityClassName:Ljava/lang/String;
ifnonnull 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.buildingContext:Lorg/hibernate/boot/spi/MetadataBuildingContext;
invokeinterface org.hibernate.boot.spi.MetadataBuildingContext.getMetadataCollector:()Lorg/hibernate/boot/spi/InFlightMetadataCollector;
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.entityClassName:Ljava/lang/String;
invokeinterface org.hibernate.boot.spi.InFlightMetadataCollector.getEntityBinding:(Ljava/lang/String;)Lorg/hibernate/mapping/PersistentClass;
astore 1
start local 1 2: aload 1
invokevirtual org.hibernate.mapping.PersistentClass.getIdentifierProperty:()Lorg/hibernate/mapping/Property;
astore 2
start local 2 3: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
ifnonnull 5
4: iconst_0
ireturn
5: StackMap locals: org.hibernate.mapping.PersistentClass org.hibernate.mapping.Property
StackMap stack:
aload 2
ifnull 7
6: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
new java.lang.StringBuilder
dup
aload 2
invokevirtual org.hibernate.mapping.Property.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
ldc "id."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
8: aload 1
invokevirtual org.hibernate.mapping.PersistentClass.getIdentifier:()Lorg/hibernate/mapping/KeyValue;
astore 3
start local 3 9: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
iconst_3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 10: aload 3
instanceof org.hibernate.mapping.Component
ifeq 16
11: aload 3
checkcast org.hibernate.mapping.Component
invokevirtual org.hibernate.mapping.Component.getPropertyIterator:()Ljava/util/Iterator;
astore 5
start local 5 12: goto 15
13: StackMap locals: org.hibernate.mapping.KeyValue java.lang.String java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.hibernate.mapping.Property
astore 6
start local 6 14: aload 4
aload 6
invokevirtual org.hibernate.mapping.Property.getName:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
iconst_1
ireturn
end local 6 15: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
end local 5 end local 4 end local 3 16: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/hibernate/cfg/ToOneFkSecondPass;
2 17 1 persistentClass Lorg/hibernate/mapping/PersistentClass;
3 17 2 property Lorg/hibernate/mapping/Property;
9 16 3 valueIdentifier Lorg/hibernate/mapping/KeyValue;
10 16 4 localPath Ljava/lang/String;
12 16 5 it Ljava/util/Iterator;
14 15 6 idProperty Lorg/hibernate/mapping/Property;
public void doSecondPass(java.util.Map);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.value:Lorg/hibernate/mapping/SimpleValue;
instanceof org.hibernate.mapping.ManyToOne
ifeq 16
1: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.value:Lorg/hibernate/mapping/SimpleValue;
checkcast org.hibernate.mapping.ManyToOne
astore 2
start local 2 2: aload 1
aload 2
invokevirtual org.hibernate.mapping.ManyToOne.getReferencedEntityName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.hibernate.mapping.PersistentClass
astore 3
start local 3 3: aload 3
ifnonnull 11
4: new org.hibernate.AnnotationException
dup
5: new java.lang.StringBuilder
dup
ldc "@OneToOne or @ManyToOne on "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.entityClassName:Ljava/lang/String;
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
invokestatic org.hibernate.internal.util.StringHelper.qualify:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " references an unknown entity: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: aload 2
invokevirtual org.hibernate.mapping.ManyToOne.getReferencedEntityName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial org.hibernate.AnnotationException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: org.hibernate.mapping.ManyToOne org.hibernate.mapping.PersistentClass
StackMap stack:
aload 2
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.path:Ljava/lang/String;
invokevirtual org.hibernate.mapping.ManyToOne.setPropertyName:(Ljava/lang/String;)V
12: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.columns:[Lorg/hibernate/cfg/Ejb3JoinColumn;
aload 3
aconst_null
aload 2
iconst_0
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.buildingContext:Lorg/hibernate/boot/spi/MetadataBuildingContext;
invokestatic org.hibernate.cfg.BinderHelper.createSyntheticPropertyReference:([Lorg/hibernate/cfg/Ejb3JoinColumn;Lorg/hibernate/mapping/PersistentClass;Lorg/hibernate/mapping/PersistentClass;Lorg/hibernate/mapping/Value;ZLorg/hibernate/boot/spi/MetadataBuildingContext;)V
13: aload 3
aconst_null
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.columns:[Lorg/hibernate/cfg/Ejb3JoinColumn;
aload 2
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.unique:Z
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.buildingContext:Lorg/hibernate/boot/spi/MetadataBuildingContext;
invokestatic org.hibernate.cfg.annotations.TableBinder.bindFk:(Lorg/hibernate/mapping/PersistentClass;Lorg/hibernate/mapping/PersistentClass;[Lorg/hibernate/cfg/Ejb3JoinColumn;Lorg/hibernate/mapping/SimpleValue;ZLorg/hibernate/boot/spi/MetadataBuildingContext;)V
14: aload 2
invokevirtual org.hibernate.mapping.ManyToOne.isIgnoreNotFound:()Z
ifne 20
aload 2
aload 1
invokevirtual org.hibernate.mapping.ManyToOne.createPropertyRefConstraints:(Ljava/util/Map;)V
end local 3 end local 2 15: goto 20
16: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.value:Lorg/hibernate/mapping/SimpleValue;
instanceof org.hibernate.mapping.OneToOne
ifeq 19
17: aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.value:Lorg/hibernate/mapping/SimpleValue;
invokevirtual org.hibernate.mapping.SimpleValue.createForeignKey:()V
18: goto 20
19: StackMap locals:
StackMap stack:
new org.hibernate.AssertionFailure
dup
new java.lang.StringBuilder
dup
ldc "FkSecondPass for a wrong value type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.hibernate.cfg.ToOneFkSecondPass.value:Lorg/hibernate/mapping/SimpleValue;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.hibernate.AssertionFailure.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/hibernate/cfg/ToOneFkSecondPass;
0 21 1 persistentClasses Ljava/util/Map;
2 15 2 manyToOne Lorg/hibernate/mapping/ManyToOne;
3 15 3 ref Lorg/hibernate/mapping/PersistentClass;
Exceptions:
throws org.hibernate.MappingException
MethodParameters:
Name Flags
persistentClasses
}
SourceFile: "ToOneFkSecondPass.java"