0 Replies Latest reply on Oct 8, 2007 11:21 AM by Fabrice Clari

    GeneratorType.TABLE to throw constraint violation error on t

    Fabrice Clari Newbie

      Hi there,

      I am facing a very strange issue: I have an EJB3 (running on top of JBoss-4.0SP3) application which was running fine since it was deployed 2 years ago.

      In that app, a specific object has its id declared as:

       @Id(generate = GeneratorType.TABLE)
       public int getProjectId() {
       return projectTimesheetLineId;
       }
      


      Unfortunatly, I am getting since a few days a constraint violiation error on the MySQL side: the app wants to create new line with existing id... As previously said, this has been working with no issue for 2 full years...

      Any ideas? Any help will be greatly appreciated :-)

      Fabrice.