‎2007 Jan 27 10:45 AM
Hello All
I have created a persistent class. When I am trying to activate it I am getting a
message in status bar that
'There is no mapping defined for one or more fields'.
I have defiend 4 attributes in the class - then clicked on the PERSISTENCE tab in
in the main toolbar, gave the table name and mapped the table fields to the class attributes. Still I am getting the message.
Could anyone please suggest why this is happening?
Also could anyone please explain to me why do we always need to define the instantiation as "protected" when creating a persistent class.
Thanks in advance.
Regards
Indrajit
‎2007 Jan 27 12:35 PM
Hello All,
The problem is solved.
I was of the understanding that I can take only few of the table fields and map it to class attributes. So I took only 4 fields of the table SPFLI and mapped it to the corresponding 4 attributes of the persistent class. So I was getting the message that
'There is no mapping defined for one or more fields'.
So I tried by defining class attributes corresponding to all fields of the table and mapped accordingly all table fields. This time I could activate the class.
This I believe is a constarint because one may not be really interested in all fields of the database table.
Regards
Indrajit
‎2007 Feb 12 8:06 PM