Insert

Insert entity with PrimaryKey:

	
	roma.insert(db);								
			

Insert entity:

	//within transaction
	Insert.into(db,roma).execute();
							
								
	//without transaction
	Insert.into(db,roma).executeNoTx();

Point ID Generator

Id generation by sequence:

	@IdGenerator(generator = DictIdGenerator.SEQUENCE,name = "MY_TABLE_SEQ")
	public class MyTable extends Table implements

Before and after insert

To execute action before or after insert, fill methods beforeInsert() or afterInsert()

	@Override
	public void afterInsert(Target target) {
		System.out.println("Entity has been inserted with id "+getId()+");
	}