Eclipse not creating JPA entities from table -
i'm using eclipse juno, hibernate 4.0 , mssql 2008. i've created database , have gone through process "jpa entities tables" in eclipse. half of tables did not created (even though selected table), classes added persistence.xml.
has else experienced problem? have solution?
in case database oracle xe. mine bit different case may helpful someone.
the best way find problem check logs of workspace present @ $workspace_location/.metadata/.log file. in case found there 3 problems:
1) caused by: java.io.filenotfoundexception: $middlewarepath\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar (access denied)
2) caused by: java.io.filenotfoundexception: $middlewarepath\oracle_common\modules\oracle.ldap_11.1.1\jremtool.jar (access denied)
3) !message unable find jpa entities generation templates in pluginorg.eclipse.jpt.jpa.gen !stack 1 java model exception: core exception [code 275] resource exists different case: '/testjpaprojectfacetsejb/src/main/java/com/domainname/ejb/testjpaprojectfacets'.
hence did following:
1) provided access permission jar files 2) while generating entities giving package name com/domainname/ejb/testjpaprojectfacets/model. having package com/domainname/ejb/testjpaprojectfacets hence error. renamed existing package lowercase (com/domainname/ejb/testjpaprojectfacets) , worked.
thanks, sanjay
Comments
Post a Comment