Unsigned integers
Martin Tilsted <[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.torque.user |
|---|---|
| Message-ID | <[email protected]> |
How do i handle unsigned integers with torque (Using MySql 5.0)? I use maven torque:jdbc to generate my schema.xml file, but i have a field(Ip) that is an unsigned int in the database, but that generate a <column name="Ip" type="INTEGER"/> in the schema file. So I have 2 questions: 1: How do I get maven torque:jdbc to generate a schema for an unsigned int? Is this even possible? I could not find the documentation for the schema.xml format. 2: If i keep the signed integer version in my schema, but the field is unsigned in the database, what happens if call setInt() with a negative value.? Martin