Skip to content

Java DB adapter to connect and perform CRUD on Cassandra DB with feature to add audit entries into separate audit table simply with annotation @Audited on your entity class

License

Notifications You must be signed in to change notification settings

rajeevnaikte/corrcha.db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corrcha.db

Java DB adapter to connect and perform CRUD on Cassandra DB with feature to add audit entries into separate audit table simply with annotation @Audited on your entity class

Sample

DBFacade dbFacade = DBFactory.getDataStaxAdapter();
dbFacade.connect("127.0.0.1", null, "audit", null, null);
dbFacade.parseEntity(EntityPojo.class);
EntityPojo entity = new EntityPojo();
dbFacade.save(entity);
dbFacade.disconnect();

//Sample EntityPojo with DataStax Table annotaiton and Audited annotation
@Table(table="entity", keySpace="demo")
@Audited
public class EntityPojo {
  public String name;

  @NotAudited
  public String creditCardNumber;
}

About

Java DB adapter to connect and perform CRUD on Cassandra DB with feature to add audit entries into separate audit table simply with annotation @Audited on your entity class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages