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... }
Insert a new person
InsertQuery<Person> query = new GenericUpdateQuery<Person>(Person.class); Person toInser = query.target(); query.set(toUpdate.getName(),"elisabeth"); query.set(toUpdate.getSurname(),"bordeaux"); query.set(toUpdate.getAddress(),"rue de Paris");
Correspondent Pseudo QL
insert into Person(name,surname,adresss) values ("elisabeth","bordeaux","rue de Paris")