On Fri, Nov 15, 2013 at 03:27:52AM -0600, ray wrote:
> Hi,
> I am using SingleRowJdbcPersonAttributeDao in order to get attributes.
> 
> When I do the select in SQL more than one record is retrieved.
>  
> by your api the result can be a string or collection in case we have 
> resultset of more than one record.
> 
> In my client when I check the retrieved attributes I get only the first 
> record from the resultset as a String and not a collection of all records.
> 
> It's not supported? 

I'm not acquainted with SingleRowJdbcPersonAttributeDao enough, but I think you
are not using it as intended.
AFAIK, SingleRowJdbcPersonAttributeDao wants the attributes to be several fields
of a single record (hence "SingleRow"), as opposed to "MultiRow" in which each
attribute has its own row.

I'm not sure where it is stated that "a string or collection in case we have
resultset of more than one record". I think it is a misinterpretation of "the
values can be either String or Collection<String> to use a single SQL result
under multiple returned attributes".

https://wiki.jasig.org/display/PDM15/JDBC+Attribute+Source

Additionally, as the DB fields <-> attributes mapping is stated in the bean
definition, I don't see how I would manage such situation.

> 
> Thanks,
> ray.
> -- 
> You are currently subscribed to cas-user@lists.jasig.org as: albe...@unex.es
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
-----------------------
Alberto Cabello Sánchez
albe...@unex.es

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to