1 Reply Latest reply on Dec 18, 2006 9:45 PM by gavin.king

    seam-gen generates java.lang.StackOverflowError on self refe

      Hi,

      I've been playing with (seam-)gen the last few days and today I decided to upgrade to Seam 1.1 GA. I was very impressed by its capabilities, however with the last release I run into an stackoverflow error doing seam generate-entites which didn't occur on the CR2 release. The tables I refer to are self referential (child parent) and leaving out the reference to itself solves the problem but that's not realy an option for me now.

      create table if not exists subject (
      subjectid INTEGER NOT NULL AUTO_INCREMENT
      , info varchar(150)
      , firstname varchar(50)
      , lastname varchar(50) NOT NULL
      , email varchar(70)
      , PRIMARY KEY (subjectid)
      ) TYPE = InnoDB;
      
      create table if not exists role (
      roleid INTEGER NOT NULL AUTO_INCREMENT
      , info varchar(150)
      , parentid INTEGER
      , name varchar(50) NOT NULL
      , PRIMARY KEY (roleid)
      , INDEX parent_ind (parentid)
      , FOREIGN KEY (parentid) references role (roleid)
      ) TYPE=InnoDB;
      
      

      Database is mysql 5.0, jdk: build 1.5.0_04-b05, os winxp sp2.
      Can anybody point me to a solution or is this a bug?
      thanks in advance.

      Jeroen.