Java Code Examples for org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmMappingImpl#setODataJPATombstoneEntityListener()

The following examples show how to use org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmMappingImpl#setODataJPATombstoneEntityListener() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JPAProcessorImplTest.java    From olingo-odata2 with Apache License 2.0 5 votes vote down vote up
private JPAEdmMapping mockEdmMapping() {
  JPATombstoneExtensionMock tombstone = new JPATombstoneExtensionMock();
  tombstone.handleDelta(new String("delta"));
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setODataJPATombstoneEntityListener(JPAQueryExtensionMock.class);
  mockedEdmMapping.setODataJPATombstoneEntityListener(JPATombstoneExtensionMock.class);
  mockedEdmMapping.setInternalName(SALES_ORDER_HEADERS);
  return mockedEdmMapping;
}
 
Example 2
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockEdmMapping() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setODataJPATombstoneEntityListener(JPAQueryExtensionMock.class);
  return mockedEdmMapping;
}