You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Gilberto C. Andrade" <gi...@gmail.com> on 2009/09/11 15:16:31 UTC
A new way to use CayenneTemplate[How to implement it]
Hi all, hope everyone are well!
I'm trying to use the CayenneTemplate class implemented by Malcolm. I
want to use it the following way:
[code]
BaseCayenneTemplate<Veiculo, String> bCT = new
BaseCayenneTemplate<Veiculo, String>(Veiculo.class);
Veiculo entity = new Veiculo();
entity.setPlaca("250-MVU");
entity.setCor("vermelho");
bCT.insert(entity);
Collection<Veiculo> result = bCT.getAll();
[/code]
My implementation isn't complete and maybe doesn't exist any
pattern/optimization on it.
So, I ask you help on it!
Regards,
Gilberto
PS.: Is there the possibility to see this option in click-extras or in
google code?