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.



-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1713f6d0-5724-4455-b8e2-1138f0571e7fo%40googlegroups.com.

Reply via email to