Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems in actvating a persistent class

Former Member
0 Likes
433

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

2 REPLIES 2
Read only

Former Member
0 Likes
339

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

Read only

0 Likes
339

Thank you Indrajit, for the solution. Peter