Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cannot convert oracle.jbo.domain.DBSequence to class java.lang.Integer

Bjoern BergAug 31 2015 — edited Oct 23 2015

Hi,

I have the following problem with my ADF application developed in JDeveloper 12.1.3:

In my model there are two Entities MeterEO and MeterTypeEO with the following attributes:

MeterEO

| TenantId | BigDecimal | TENANT_ID | NUMBER | |
| MeterCode | String | METER_CODE | VARCHAR2(48) | |
| Type | Integer | TYPE | NUMBER | |

MeterTypeEO

| Id | DBSequence | ID | NUMBER | |
| Vendor | String | VENDOR | VARCHAR2(32) | |
| Type | String | TYPE | VARCHAR2(16) | |

Type in MeterEO references Id in MeterTypeEO.

Appropriate VO from Meter uses a LOV from MeterTypeVO to build a list containing Vendor and Type as selection for the user.

In the ModelTester everything works fine when I try to edit a Meter and select a new type and commit my changes to the database.

On a JSFF it looks quite different. Selection is done by SelectOneChoice with the LOV displaying the List containing of Vendor and Type. From the LOV the appropriate Values are selected for the Type (integer) in Meter, so the User gets a readable text instead a cryptic number. But when I change the value by selecting a new one from the Choice I always get the error "Cannot oracle.jbo.domain.DBSequence to class java.lang.Integer".

Why does it work without problems in the Modeltester but not on the page?

Screenshot 2015-08-31 12.48.55.pngScreenshot 2015-08-31 12.49.09.png

Please see attached screenshots to get it more clear what I mean.

Any hint is appreciated,

Björn

This post has been answered by Bjoern Berg on Oct 23 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2015
Added on Aug 31 2015
4 comments
1,619 views