JPA - Oracle Spatial (JGeometry) Support

Java Conceptuel Diagram

Download the toplink-spatial-template.jar (to support Oracle Spatial) Launch the Config Wizard (/common/bin/config.sh (or .cmd).
  • Select Extend an existing WebLogic domain.
  • Browse and select your WebLogic Server domain.
  • Select Extend my domain using an existing extension template.
  • Browse and select the required template JAR (toplink-spatial-template.jar for Oracle Spatial
  • Complete the remaining pages of the wizard and finish
Weblogic Extend Domain Configuration Summary Toplink Spatial Template
Preparing...
Extracting Domain Extension Contents...
Saving the Domain Information...
Updating Domain Information...
String Substituting Domain Files...
Performing OS Specific Tasks...
Performing Post Domain Creation Tasks...
Domain Extension Applied Successfully!

Domain Location: /bishiphome/Middleware/user_projects/domains/bifoundation_domain
Admin Server URL: http://demo.us.oracle.com:7001

  • Restart Weblogic
Annotation Example
@Entity
@Table(name="myName")
@StructConverter(name = "JGeometry", converter = 
"org.eclipse.persistence.platform.database.oracle.converters.JGeometryConverter")
public class Hotstar implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Convert(value="JGeometry")
	private JGeometry point;
	
	@Convert(value="JGeometry")
	@Column(name="POINT_90112")
	private JGeometry point90112;

....
Support
java.lang.NoClassDefFoundError: oracle/spatial/geometry/JGeometry
Exception in thread "main" javax.ejb.EJBException: EJB Exception: ; 
nested exception is: java.lang.NoClassDefFoundError: oracle/spatial/geometry/JGeometry; 
nested exception is: java.rmi.RemoteException: EJB Exception: ; 
nested exception is: java.lang.NoClassDefFoundError: oracle/spatial/geometry/JGeometry

You must complete the configuration of your application server.
Documentation / Reference





Discover More
Card Puncher Data Processing
JPA - Entity (Managed Classes)

xmlparserv2.jar Introduction to EclipseLink JPA (ELUG) for more information on the annotation.



Share this page:
Follow us:
Task Runner