Object Query

Delete Tutorial

Example Java Domain

public class Person {
	private String name;
	private String surname;
	private String address;
	private Date birthDate;
	...gets sets...
}

Simple delete query building

Update the address of a person.

DeleteQuery<Person> query = new GenericDeleteQuery<Person>(Person.class);
Person toUpdate = query.target();
query.eq(toUpdate.getName(),"elisabeth");
query.eq(toUpdate.getSurname(),"bordeaux");

Correspondent Pseudo QL

delete Person where mame="elisabeth" and surname="bordeaux"