Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Enhancing core library extension classes

Enhancing core library extension classes

If you are customizing the Core Engine library, you may need to add and/or modify domain classes. The domain classes in your core library extension need to be bytecode-enhanced for persistence through OpenJPA, the same as domain classes in the base core library.

Normally, these classes will be enhanced by Maven automatically with the mvn package or mvn install command. However, if you are importing a Core extension in Eclipse, you must enable OpenJPA enhancement.

To enable OpenJPA in your Core extension project:

  1. Right-click your core extension project and select Properties.
  2. Click OpenJPA
  3. Select Enable OpenJPA Enhancer
  4. Under configuration information, enter the following XML file:
    src\main\resources\META-INF\jpa-persistence.xml
  5. Beside OpenJPA Enhancer Version, select 1.2.1 (EP Customized)
    Note:

    The box beside OpenJPA Enhancer Version may be grayed out. This is fine as you may still click it and select 1.2.1 (EP Customized).

    Your screen should look like the image below:properties_open_jpa.png
  6. Click OK to apply your changes.