Hi,
First: Merry christmas.
Create a class that calls "Order2" that implements PropertyBusinessObject.
With this class I create a table using the SQLmap api with the following code:
Database db = null;
try {
db = Display.getInstance().openOrCreate(BD);
SQLMap sqlMap = SQLMap.create(db);
Orden2 o2 = new Orden2();
sqlMap.setPrimaryKeyAutoIncrement(o2,
o2.id);
sqlMap.createTable(o2);
} catch (IOException e) {
System.out.println("Error: " + e.getMessage());
} finally {
Util.cleanup(db);
}
I am testing the app in debug mode and it does not allow me to change the value of one of the fields (orderId). It always remains with the initial value. In the beginning this field was the primary key, but when it gave me problems I changed it. I have also tried deleting the database from the ".cn1" folder and the problem continues.
The following image shows the content of the field after execution and it is visualized that the value never changed.