File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
jbt/src/main/java/org/hibernate/tool/orm/jbt/internal/factory Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,14 @@ public PropertyWrapper getProperty() {
102
102
}
103
103
104
104
@ Override
105
- public void setTable (TableWrapper table ) {
105
+ public void setTable (TableWrapper tableWrapper ) {
106
+ Table table = tableWrapper == null ? null : (Table )tableWrapper .getWrappedObject ();
106
107
if (isInstanceOfRootClass ()) {
107
- ((RootClass )persistentClass ).setTable (( Table ) table . getWrappedObject () );
108
+ ((RootClass )persistentClass ).setTable (table );
108
109
} else if (isInstanceOfJoinedSubclass ()) {
109
- ((JoinedSubclass )persistentClass ).setTable (( Table ) table . getWrappedObject () );
110
+ ((JoinedSubclass )persistentClass ).setTable (table );
110
111
} else if (isInstanceOfSpecialRootClass ()) {
111
- ((SpecialRootClass )persistentClass ).setTable (( Table ) table . getWrappedObject () );
112
+ ((SpecialRootClass )persistentClass ).setTable (table );
112
113
} else {
113
114
throw new RuntimeException ("Method 'setTable(Table)' is not supported." );
114
115
}
You can’t perform that action at this time.
0 commit comments