Skip to main content

Posts

Showing posts from 2012
JPA troubleshooting this morning i got an error while inseritng an entity in the db Unknown entity bean class: class model.Doctor, please verify that this class has been marked with the @Entity annotation. the class is already having @Entity annotation , everything is set correctly only small thing i noticed ..the id is defined as int because during the process this bean is being populated from another bean and assigning int value to the id. Solution ..by changing both beans from int to long  this error disappeard :) another error happend with glass fish server java.lang.IllegalArgumentException: Object: is not a known entity type. this when deploying an app and glass fish did not wake up yet to realize that the version of the class is changed solution ..simply restart glassfish  :D

prevent SVN commit without a comment

Write the following  commands  inside the file Your  Subversion  repository /hooks/pre-commit.cmd SET REPOS=%1 SET TXN=%2  "C:\Program Files (x86)\VisualSVN Server\bin\svnlook.exe"  log %REPOS% -t %TXN% | findstr . > nul IF %ERRORLEVEL% EQU 1 GOTO ERR exit 0 :ERR echo. 1>&2 echo no commentsr: 1>&2 echo     please add comment before commit. 1>&2 echo Commit details: 1>&2 EXIT 1