Hi,
  I use the 'id' attribute of a sqlobject object in my program to
uniquely identify a object. But now I need to use something like
namespace:id as an identifier. What is the best way to produce this
output since id is integer?
  I want something like that:

  select concat(namespace, ":", id) as id from object

  Suppose that I have a field named namespace. In other words, is
there a way to overload the get method which read the attribute id and
everytime that I read object.id, sqlobject concat namespace + ":" +
id.

Cheers,
Leandro.

-- 
Leandro Melo de Sales.
Pervasive and Embedded Computing Laboratory
http://embedded.ufcg.edu.br/
+55 083 3310-1404 (extension 208)

"There are 10 types of people in this world: those who understand
binary, those who don't"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to