I know I know. I answered a mail on the same topic yesterday. The struts plugin is alpha, so expect it to have bugs.
Aslak ----- Original Message ----- From: "Tobias Hill" <[EMAIL PROTECTED]> Date: Monday, January 6, 2003 12:23 pm Subject: [Middlegen-user] Bug when there is a bit column in a DB-table > Hi, > This is (most likely) a bug: > > I am using the inet opta2000 driver to connect to MS SQL-server. > In the database I have two tables with a "bit"-column within them. > This defaults to "boolean" in the middlegen program (quite resonable). > However, the Struts source is generated like this: > > ------------------------------------------------------------------- > --- > > /** > * Form for company. > * > * @author <a href="<"/>Middlegen" > target="l">http://boss.bekk.no/boss/middlegen/>"/>Middlegen* > * @struts.form name="companyForm" > */ > public class CompanyForm extends ActionForm { > > private final static SimpleDateFormat FORMAT = new > SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); > > private java.lang.Integer _id = null; > private java.lang.String _companyName = null; > private java.lang.String _organisationNumber = null; > private java.lang.Integer _companyCategoryId = null; > private java.lang.Integer _addressId = null; > private boolean _deleted = java.lang.Boolean.MIN_VALUE; > > /** > * Standard constructor. > */ > public CompanyForm() { > } > > ------------------------------------------------------------------- > --- > > As you can see this will not compile. I think you will have to use > "Boolean.FALSE" or just "false" when dealing with booleans or else > the build process breaks as soon as bit:s are used and not properly > re-mapped. > > > Regards, > Tobias Hill > Citerus AB > Sweden > > > ------------------------------------------------------- > 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
