dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40574
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20596: minor fix, get column information from many-to-one hibernate types
------------------------------------------------------------
revno: 20596
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-10-09 10:09:03 +0700
message:
minor fix, get column information from many-to-one hibernate types
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/AbstractPropertyIntrospectorService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/AbstractPropertyIntrospectorService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/AbstractPropertyIntrospectorService.java 2015-10-08 14:12:50 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/AbstractPropertyIntrospectorService.java 2015-10-09 03:09:03 +0000
@@ -275,7 +275,8 @@
property.setOneToOne( true );
}
- if ( SingleColumnType.class.isInstance( type ) || CustomType.class.isInstance( type ) )
+ if ( SingleColumnType.class.isInstance( type ) || CustomType.class.isInstance( type )
+ || ManyToOneType.class.isInstance( type ) )
{
Column column = (Column) hibernateProperty.getColumnIterator().next();