Example Java Domain
public class Person { private String name; private String surname; private String address; private Date birthDate; ...gets sets... }
public class Person { private String name; private String surname; private String address; private Date birthDate; ...gets sets... }
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"