Hibersap Developer's Guide

Prerequisites

Installation

  • Checkout hibersap project (and hibersap-examples) from SourceForge with Eclipse in a new workspace (https://hibersap.svn.sourceforge.net/svnroot/hibersap)
  • Download SAP Java Connector 3.0 (http://service.sap.com/connectors) and extract the sapjco3.jar and the sapjco3 native library.
  • Copy the native library into all project folders or install it into some global lib path (such as C:/WINDOWS/SYSTEM32 on Windows), or specify the property sap.jco.lib.path in the profile part of your Maven2 settings.xml to point to the folder containing the native library.
  • The SapJCo JAR needs to be installed manually into your Maven repository
    mvn install:install-file -DgroupId=com.sap -DartifactId=sap-jco -Dversion=3.0.0 -Dpackaging=jar -Dfile=./sapjco3.jar

Building and running the examples

  • Run mvn install -DskipTests on the hibersap project.
  • Now edit META-INF/hibersap.xml in Project jco-examples and run the tests with mvn install.
  • Have fun!