soundasleep / iaml

Automatically exported from code.google.com/p/iaml
3 stars 1 forks source link

DomainObjects should automatically create or define ID elements #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a DomainObject which does not have an 'id' field
2. Try to create a new instance of it and save it

What is the expected output? What do you see instead?
Expected: The new instance is saved
Actual: An error message "no 'id' field found" is thrown

Original issue reported on code.google.com by soundasleep on 22 Jul 2009 at 5:42

GoogleCodeExporter commented 9 years ago

Original comment by soundasleep on 6 Aug 2009 at 1:19

GoogleCodeExporter commented 9 years ago
Resolved in r920.

Added a "primary key" boolean attribute to DomainAttributes.

If a DomainObject does not contain a DomainAttribute with primaryKey set to 
true,
then the inference engine will create one automatically.

All DomainAttributes which have primaryKey=true will be represented as INTEGER
PRIMARY KEY AUTOINCREMENT.

Original comment by soundasleep on 6 Aug 2009 at 5:04