jpa - can not generate entities from table in eclipse with foreign key (sql server) -


i can not generate entities table in eclipse foreign key. usingsql server. here schema of tables:enter image description here

there's foreigne key between pointage.id , pause.idpointage. geration fails when try generate 2 tables. pointage generated not pause. in le last screen of generation pause table empty (no column). fails when import pause works when delete foreign key.

i can see error in workspace log:

org.apache.velocity.exception.methodinvocationexception: invocation of method 'getimportstatements' in  class org.eclipse.jpt.jpa.gen.internal.ormgentable threw exception java.lang.illegalstateexception: pause.fk_pause_pointage - mismatched sizes: 0 vs. 1 @ main.java.vm[7,9] @ org.apache.velocity.runtime.parser.node.astidentifier.execute(astidentifier.java:205) @ org.apache.velocity.runtime.parser.node.astreference.execute(astreference.java:203) @ org.apache.velocity.runtime.parser.node.astreference.render(astreference.java:294) @ org.apache.velocity.runtime.parser.node.simplenode.render(simplenode.java:318) @ org.apache.velocity.template.merge(template.java:254) @ org.apache.velocity.app.velocityengine.mergetemplate(velocityengine.java:508) @ org.apache.velocity.app.velocityengine.mergetemplate(velocityengine.java:473) @ org.eclipse.jpt.jpa.gen.internal.packagegenerator.generatejavafile(packagegenerator.java:333) @ org.eclipse.jpt.jpa.gen.internal.packagegenerator.generateclass(packagegenerator.java:310) @ org.eclipse.jpt.jpa.gen.internal.packagegenerator.generateinternal(packagegenerator.java:132) @ org.eclipse.jpt.jpa.gen.internal.packagegenerator.dogenerate(packagegenerator.java:106) @ org.eclipse.jpt.jpa.gen.internal.packagegenerator.generate(packagegenerator.java:82) @ org.eclipse.jpt.jpa.ui.internal.wizards.gen.generateentitiesfromschemawizard$generateentitiesjob.runinworkspace(generateentitiesfromschemawizard.java:285) @ org.eclipse.core.internal.resources.internalworkspacejob.run(internalworkspacejob.java:39) @ org.eclipse.core.internal.jobs.worker.run(worker.java:55) caused by: java.lang.illegalstateexception: pause.fk_pause_pointage - mismatched sizes: 0 vs. 1 @ org.eclipse.jpt.jpa.db.internal.dtpforeignkeywrapper.buildcolumnpairarray(dtpforeignkeywrapper.java:116) @ org.eclipse.jpt.jpa.db.internal.dtpforeignkeywrapper.getcolumnpairarray(dtpforeignkeywrapper.java:106) @ org.eclipse.jpt.jpa.db.internal.dtpforeignkeywrapper.getlocalcolumnpairs(dtpforeignkeywrapper.java:101) @ org.eclipse.jpt.jpa.db.internal.dtpforeignkeywrapper.getbasecolumns(dtpforeignkeywrapper.java:146) @ org.eclipse.jpt.jpa.db.internal.dtpforeignkeywrapper.basecolumnscontains(dtpforeignkeywrapper.java:150) @ org.eclipse.jpt.jpa.db.internal.dtptablewrapper.foreignkeybasecolumnscontains(dtptablewrapper.java:216) @ org.eclipse.jpt.jpa.db.internal.dtpcolumnwrapper.ispartofforeignkey(dtpcolumnwrapper.java:58) @ org.eclipse.jpt.jpa.gen.internal.ormgencolumn.isforeignkey(ormgencolumn.java:266) @ org.eclipse.jpt.jpa.gen.internal.ormgentable.buildcolumntypesmap(ormgentable.java:206) @ org.eclipse.jpt.jpa.gen.internal.ormgentable.getimportstatements(ormgentable.java:138) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.apache.velocity.runtime.parser.node.propertyexecutor.execute(propertyexecutor.java:137) @ org.apache.velocity.util.introspection.uberspectimpl$velgetterimpl.invoke(uberspectimpl.java:350) @ org.apache.velocity.runtime.parser.node.astidentifier.execute(astidentifier.java:180) ... 14 more 

this bug in eclipse dali (https://bugs.eclipse.org/bugs/show_bug.cgi?id=281991), result of bug in eclipse dtp (https://bugs.eclipse.org/bugs/show_bug.cgi?id=282206). there has been recent development activity in dtp, after several years of complete inactivity; so, maybe if add vote latter bug, might fixed. :-)


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -