peterjazenga / delphi-orm

Automatically exported from code.google.com/p/delphi-orm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "Field IsAdult" not found

GoogleCodeExporter opened this issue · comments

I'm trying to rum the samples, but I'm getting the error "column unknown 
ISADULT". I assume that it is a non-db property, cause its just reading de Age 
field to define it's value. How can I solve this?

Original issue reported on code.google.com by bk...@infomedic.com.br on 30 Jan 2012 at 2:00

It is a problem related to the new mapping strategies.

Original comment by daniele....@gmail.com on 30 Jan 2012 at 2:27

  • Changed state: Accepted
There is a problem with the transient fields.
If you define a field as "transient" with attribues it is anyway the field is 
mapped throug the CoC.

Original comment by daniele....@gmail.com on 30 Jan 2012 at 2:30

Original comment by daniele....@gmail.com on 30 Jan 2012 at 2:30

just add dorm.Mappings on interface of unit BusinessObjects;

Delphi Compiler not generate error if u put [Transient] attribute but not 
defined the implementation of this attribute! (just a warning!)


Original comment by mrbar2000@gmail.com on 31 Jan 2012 at 2:24

  • Changed state: Verified