Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.1
Code between sessionFactory.openSession() and session.close():
ArrayList<ReleaseScheduleBean> list = (ArrayList<ReleaseScheduleBean>)this.getHibernateTemplate().find("from " + ReleaseScheduleBean.class.getName() + " as rsBean inner join rsBean.milestone as msBean where msBean.productID = ? order by msBean.number" , id);
if(logger.isDebugEnabled())
{
for(int i = 0; list != null && i < list.size(); ++i)
{
logger.debug("ReleaseScheduleDAO list[" + String.valueOf(i) + "]:" + String.valueOf(list.get(i)));
}
}
Log output:
ReleaseScheduleDAO list[0]:[Ljava.lang.Object;@12f195
ReleaseScheduleDAO list[0]:[Ljava.lang.Object;@12f195
ReleaseScheduleDAO list[1]:[Ljava.lang.Object;@1b29f80
ReleaseScheduleDAO list[1]:[Ljava.lang.Object;@1b29f80
ReleaseScheduleDAO list[2]:[Ljava.lang.Object;@5b24c
ReleaseScheduleDAO list[2]:[Ljava.lang.Object;@5b24c
ReleaseScheduleDAO list[3]:[Ljava.lang.Object;@1fcd402
ReleaseScheduleDAO list[3]:[Ljava.lang.Object;@1fcd402
ReleaseScheduleDAO list[4]:[Ljava.lang.Object;@1c2ec05
ReleaseScheduleDAO list[4]:[Ljava.lang.Object;@1c2ec05
ReleaseScheduleDAO list[5]:[Ljava.lang.Object;@1558dc
ReleaseScheduleDAO list[5]:[Ljava.lang.Object;@1558dc
ReleaseScheduleDAO list[6]:[Ljava.lang.Object;@17d03c5
ReleaseScheduleDAO list[6]:[Ljava.lang.Object;@17d03c5
ReleaseScheduleDAO list[7]:[Ljava.lang.Object;@82a13a
ReleaseScheduleDAO list[7]:[Ljava.lang.Object;@82a13a
ReleaseScheduleDAO list[8]:[Ljava.lang.Object;@2726b2
ReleaseScheduleDAO list[8]:[Ljava.lang.Object;@2726b2
ReleaseScheduleDAO list[9]:[Ljava.lang.Object;@5da37c
ReleaseScheduleDAO list[9]:[Ljava.lang.Object;@5da37c
ReleaseScheduleDAO list[10]:[Ljava.lang.Object;@19845fb
ReleaseScheduleDAO list[10]:[Ljava.lang.Object;@19845fb
ReleaseScheduleDAO list[11]:[Ljava.lang.Object;@1a791f
ReleaseScheduleDAO list[11]:[Ljava.lang.Object;@1a791f
ReleaseScheduleDAO list[12]:[Ljava.lang.Object;@6179e
ReleaseScheduleDAO list[12]:[Ljava.lang.Object;@6179e
Name and version of the database you are using:
MySQL 4
I have an overloaded toString method so I don't understand why it's printing out [Ljava.lang.Object;@6179e instead of calling the objects toString method
Any Help?