I'll try that example with OJB... Thanks,
Edson Richter Thomas Dudziak escreveu:
On 8/8/05, Edson Carlos Ericksson Richter <[EMAIL PROTECTED]> wrote:Let me expand my idea (sorry if I get boring). I have a User object. Each user has a LoginHour list. So, using JDK 5.0 could I declare public class User { private String username; private String password; private List<LoginHour> loginHours; public void setUsername(String newUsername) {...} public String getUsername() {...} public void setPassword(String newPassword) {...} public Stirng getPassword() {...} public void setLoginHours(List<LoginHour> loginHours) { this.loginHours = loginHours; } public List<LoginHour> getLoginHours() { return this.loginHours; } } And this will work fine? There is nothing to be changed on class-descriptor, neihter in collection-descriptor?I havn't tried but I think not as the generated bytecode (.class files) will have a plain List in there and the compiler has inserted casts in the appropriate places. You can see for yourself what the compiler generates when you print some info via the java.lang.reflect package for your class, you'll see that there isn't any generic stuff in there. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Edson Carlos Ericksson Richter MGR Informática Ltda. Fones: 3347-0446 / 9259-2993
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
