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

The following examples show how to use org.apache.olingo.odata2.jpa.processor.core.model.JPAEdmMappingImpl#setInternalName() . 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: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 6 votes vote down vote up
private JPAEdmMapping mockMappingWithType(String type) {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("Customer");
  if (type.equals("Character")) {
    mockedEdmMapping.setJPAType(Character.class);
  } else if (type.equals("char")) {
    mockedEdmMapping.setJPAType(char.class);
  } else if (type.equals("charArray")) {
    mockedEdmMapping.setJPAType(char[].class);
  } else if (type.equals("characterArray")) {
    mockedEdmMapping.setJPAType(Character[].class);
  } else if (type.equals("uuid")) {
    mockedEdmMapping.setJPAType(UUID.class);
  }
  return mockedEdmMapping;
}
 
Example 2
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 3
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockEdmMappingForProperty() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("CustomerName");
  return mockedEdmMapping;
}
 
Example 4
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockEdmMappingForProperty1() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("SalesOrderHeader.CustomerName");
  return mockedEdmMapping;
}
 
Example 5
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockNavEdmMappingForProperty() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("SalesOrderHeader");
  return mockedEdmMapping;
}
 
Example 6
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockMapping() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("Customer");
  return mockedEdmMapping;
}
 
Example 7
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockNormalizedMapping() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("C1.Customer.Name");
  return mockedEdmMapping;
}
 
Example 8
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockNormalizedMapping1() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("E1.SalesOrderItem");
  return mockedEdmMapping;
}
 
Example 9
Source File: JPAQueryBuilderTest.java    From olingo-odata2 with Apache License 2.0 4 votes vote down vote up
private JPAEdmMapping mockNormalizedValueMapping() {
  JPAEdmMappingImpl mockedEdmMapping = new JPAEdmMappingImpl();
  mockedEdmMapping.setInternalName("'C1.Customer.Name'");
  return mockedEdmMapping;
}