8 Replies Latest reply on Feb 12, 2010 3:05 AM by Ran Bittmann

    Newbie - Problem Generating Entities from Existing Empty DB.

    Ran Bittmann Newbie

      Hi Again,

       

      I am using: Eclipse 3.5.1, JBoss Tools 3.1.0.CR1, TestNG 5.11.0.28, jdk1.6.0_17, JBoss AS 5.1.0GA-jdk6, Seam 2.2.0.GA, JBoss 4.2.2GA & MySQL 5.1.37.

       

      I added a schema to my MySQL DB with some tables. There are no values in the tables.

      I created a Seam Web Project, with a with a Database connection to the schema, tested it and the connection works fine.

      I tested the project with the home page and again everything is fine.

      Going to the Database perspective I can browse the schema and its tables and fields, so far so good.

       

      Now I am trying to generate an entity:

      I right click on the project name -> New -> Generates Seam Entities with the default Seam Project and Hibernate Console Configuration and the Reverse engineer from database checked.

      Click Next to the select table page. Press the Refresh button and get the configured Schema from above with a + on the left indicating it can be expanded so I can select the table I choose for entity generation.

       

      Trying to expand it (clicking on the small + on the left) nothing happens! There are no tables available in the Schema.

       

      I will appreciate your help in telling me what I am doing wrong or where to look for a solution.

       

      Thanks,

      Rani.