5 Replies Latest reply on Aug 6, 2009 6:16 AM by Arbi Sookazian

    seam-gen reverse engineering SQL Server question

    Robert Morse Apprentice

      Hello,
      I'm using seam-gen (2.2.0.GA) to generate the model from a MS SQL Server 2008 database.  It is a terrific time-saver, but I'm having an issue with Date and DateTime (timestamp) fields.  It generates the datetime (timestamp) fields correctly, but uses java.io.Serializable as the type for Date fields.  I can do a simple search / replace to fix that, but it also doesn't add the @Temporal(TemporalType.DATE) which is a very time-consuming problem to fix considering the database has about 200 tables in it.   It does add the correct annotation for timestamp fields.  I've tried playing with the seam-gen.reveng.xml configuration without success, and was hoping someone has run into this issue and solved it.   Thanks.