Skip to Main Content

Java and JavaScript in the Database

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!

Is it possible to develop a JPA entity using SQLJ?

Babak TouraniFeb 9 2016 — edited Feb 9 2016

Hi,

I'm trying to develop a migration script to retrieve data from a table that is storing "settings" data for an application in a BLOB. The legacy application is using JPA to store "setting" entities ('userID','settingKey','value') into a table with the same name, but the problem is that since the 'value' is stored in a BLOB column, it is not possible to retrieve/migrate the settings using a SQL statement.

I would like to incorporate my "migration script" into our PL/SQL install/upgrade script, and that's why I'm looking to use SQLJ, but I've got no clue that (for example) where should I put the "Persistence.xml" file, and whether I need it, at all?

Regards,

Babak.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2016
Added on Feb 9 2016
0 comments
807 views