Skip to content
Eduardo William Karpinski Priester edited this page Oct 1, 2021 · 2 revisions
public static void main(String[] args) {
	// deleting record 
	MyEntity entity2 = new MyEntity();
	entity2.setId(1L); // it is mandatory that the primary key is filled. 
	new HCFConnection<>(MyEntity.class).delete(entity2);

 	// or
		
	new HCFConnection<>(MyEntity.class).deleteById(1);
}
Clone this wiki locally