Author: dgeraskov
Date: 2010-03-12 04:29:56 -0500 (Fri, 12 Mar 2010)
New Revision: 20795
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6050
discriminator value added
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2010-03-12
09:29:13 UTC (rev 20794)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2010-03-12
09:29:56 UTC (rev 20795)
@@ -174,6 +174,11 @@
if (pc != null){
if (pc.isAbstract()){
subclass = new SingleTableSubclass(pc);
+ if (pc instanceof RootClass && pc.getDiscriminator() == null){
+ SimpleValue discr = new SimpleValue();
+ discr.setTypeName("string"); //$NON-NLS-1$
+ ((RootClass)pc).setDiscriminator(discr);
+ }
} else {
subclass = new JoinedSubclass(pc);
}