The preferences file cannot distinguish between datatypes which you have overridden and those defined in the database.
It would be a smart enhancement to only record in the properties file those changes the designer manually entered through the middlegen GUI. All other datatypes and names should come from the database schema. Until this is enhanced, you will have to change the datatype in two places--1) the database i.e., Number to Varchar2 and 2) middlegen GUI BigDecimal to String. -----Original Message----- From: Fabrizio Di Giuseppe [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:00 AM To: [EMAIL PROTECTED] Subject: Re: [Middlegen-user] Column type change On Monday, September 22, 2003, at 4:22 PM, [EMAIL PROTECTED] wrote: > This behavior is a good thing. The preferences file maintains the > changes > you make to attribute names, datatypes, etc. If you want to change the > datatype, do this in the GUI and upon exit, the change will be saved > to the > preferences file and recognized the next time you invoke middlegen. My question is not about changing preferred type mapping, but about changing column type inside the DB. For me is the DB that drives the generation of the entities (it should be so in middlegen, is it right?). So I want that every time that a change in the DB happens, like a field that was NUMBER(1) becomes CHAR(1) for example, the same change would be reflected to the entities automatically. Actually if I change a column from NUMBER to VARCHAR2, the type of the entity property still remain an int or a BigDecimal. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
