Or cast it to the Long object?
Eg...
To get the value of the id just do something like the following;
long long = ((Long)group.getId()).longValue();
To get a group using the id sent over the httprequest as a string just
String groupId;// the group id from the form
DynamicGroup group = (DynamicGroup) groupManager.getGroupById(Long
.valueOf(groupId.getValue()));
-----Original Message-----
From: Martin Wendel [mailto:[EMAIL PROTECTED]
Sent: 01 July 2004 23:30
To: 'Turbine Users List'
Subject: RE: getId() returns object?
Useradapter...
-----Original Message-----
From: Martin Wendel [mailto:[EMAIL PROTECTED]
Sent: 2. juli 2004 00:13
To: 'Turbine Users List'
Subject: getId() returns object?
How come that user.getId() returns an object, instead of the value in the id
column of the user table?
And how do I extract that value from the object? Everywhere I looked, they
all used long as return value, not Object...
/Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Scanned for viruses by MessageLabs
Scanned for viruses by MessageLabs. The integrity and security of this message cannot
be guaranteed. This email is intended for the named recipient only, and may contain
confidential information and proprietary material. Any unauthorised use or disclosure
is prohibited.