Package de.scoopgmbh.copper.audit.BatchingAuditTrail

Examples of de.scoopgmbh.copper.audit.BatchingAuditTrail.Property2ColumnMapping


  @Test
  public void testCustomTable() throws Exception {
    createCustomAuditTrailTable();

    final ArrayList<Property2ColumnMapping> additionalMapping = new ArrayList<BatchingAuditTrail.Property2ColumnMapping>();
    additionalMapping.add(new Property2ColumnMapping("customInt", "CUSTOM_INT"));
    additionalMapping.add(new Property2ColumnMapping("customTimestamp", "CUSTOM_TIMESTAMP"));
    additionalMapping.add(new Property2ColumnMapping("customVarchar", "CUSTOM_VARCHAR"));
   
    final BatchingAuditTrail batchingAuditTrail = new BatchingAuditTrail();
    batchingAuditTrail.setDataSource(ds);
    batchingAuditTrail.setDbTable("COP_AUDIT_TRAIL_EVENT_EXTENDED");
    batchingAuditTrail.setAuditTrailEventClass(ExtendedAutitTrailEvent.class);
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.audit.BatchingAuditTrail.Property2ColumnMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.