Hi all there,
try
{
Session session = factory.openSession();
tx = session.beginTransaction();
List list1 = session.createQuery("FROM People as play, Agama as rel WHERE play.id = :var")
.setString("var", a)
.list();
Iterator i=list1.iterator();
while(i.hasNext())
{
People people1 = (People)i.next();
out.println(people1.getId());
session.clear();
Agama agama1 = (Agama)i.next();
out.println(agama1.getReligi());
}
... Me too, I always get Exception like this java.lang.ClassCastException: [Ljava.lang.Object;
i don't know how to show the request that i want like agama1.getReligi() from two tables that i join ....?
please help ....? my english is not so good, thank's he2x
handi.....?
_________________ hi i'm beginner would learn much about web programming design...thanks
|