@Lob annotation in JPA and Oracle 12

I am using eclipse link 2.5.2 for a project of mine. My problem is the following, I have an attribute annotated as follow:


@Column(name = "myName")


private String myName = null;

but auto-generated database table (in oracle 12) has a length of 4000 chars.

I have read in internet and problem looks like that JPA does not recognize the database as oracle and I tried using:

but it throws following exception:

Exception Description: Database platform class [org.eclipse.persistence.platform.database.oracle.Oracle11Platform] not found.

Internal Exception: Exception [EclipseLink-3007] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ConversionException

Exception Description: The object [org.eclipse.persistence.platform.database.oracle.Oracle11Platform], of class [class java.lang.String],...

Read More »

By: StackOverFlow - Thursday, 19 July

Related Posts