package test;

import orm.DBManager;
import model.Personne;

public class Main
{
	public DBManager				dbManager;
	
	@SuppressWarnings("unused")
	public static void main(String args[])
	{
		Main newAppli			= new Main();
		
	}
	
	public Main()
	{
		callDataBase();
	}	

	public void callDataBase()
	{
		dbManager = new DBManager();
		
		Personne test				= new Personne();
		
		test.setId("1");
		test.setNom("toto");
				
		//System.out.println(test);
		//System.out.println("Main.main() " + test.getClass().getSimpleName());
		
		dbManager.dbConnect_();
		dbManager.createObject(test);
		//dbManager.readObject();
	}
}
