Object Query

Insert Tutorial

Example Java Domain

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

Simple insert query building

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")