I would add a toString() method to your objects to make sure they're
printing out what you expect them to print out.

Matt

On 12/29/07, Fred Forester <[EMAIL PROTECTED]> wrote:
>
> Hi all.
>
> when I run getAll via the generic class the log shows I am getting back
> pojo classes
> DEBUG [http-8080-Processor24] Loader.getRow(1173) | result row:
> EntityKey[com.epstrategies.reductions.model.Smf701Lpd#1655]
>
> but when I try to call my own method "getFieldSubset" I get DEBUG
> [http-8080-Processor25] Loader.getRow(1173) | result row:
>
> note the models classname is missing in the log entry. the debug lines
> verify that I am getting results from the query just not the correct
> object type for some reason. anyone know why?
>
>
>
>
> public class Smf701LpdDaoHibernate extends
> GenericDaoHibernate<Smf701Lpd, Long> implements Smf701LpdDao {
>
>
>      public Smf701LpdDaoHibernate() {
>          super(Smf701Lpd.class);
>      }
>
>
>      public List<Smf701Lpd> getFieldSubset() {
>          log.debug("Starting Query");
>          List tempList = getHibernateTemplate().find("select
> waitCompletion,system,startime from Smf701Lpd");
>          log.debug("Returning " + tempList.size() + " Results from
> Smf701LpdDaoHibernate");
>          return tempList;
>      }
> }
>
>
> Thanx in advance
> Fred
>
> ---------------------------------------------------------------------
> 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]

Reply via email to