-
Notifications
You must be signed in to change notification settings - Fork 0
Delete
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);
}