user3246402
user3246402

Reputation: 162

12c Jdeveloper gives Cannot convert 20 of type class oracle.jbo.domain.DBSequence to class java.lang.Long error while inserting new record

I have two tables Customers and Sectors that are connected with foreignkey. Customers table has sector_id as a foreignkey, customer_id as a primary key. Both Customers and Sectors primary keys' are type of DBSequence in Jdeveloper 12c Fusion web application. In Customers table I cretaed ListOfValues of sector_id and in Customers table sector_id is seen as Long type. In 11g version I did not get such an error even though everything is same. When I try createInsert a Customer I get this error : Cannot convert 20 of type class oracle.jbo.domain.DBSequence to class java.lang.Long.

What is the problem ?

Upvotes: 0

Views: 1159

Answers (1)

Mahmoud Sabri
Mahmoud Sabri

Reputation: 795

Change the type of sector_id from DBSequence to Long in entity object

Upvotes: 1

Related Questions