click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilberto C. Andrade" <gilbert...@gmail.com>
Subject A new way to use CayenneTemplate[How to implement it]
Date Fri, 11 Sep 2009 13:16:31 GMT
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?

Mime
View raw message