Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1.7c
i have 2 tables, namely names and email. i want to join them in a way it will have the result of 2 fields which is firstname and email.
but after i execute the code i get [LJava.lang.Object;@df1832
so how actually do you display this kind of situation wherein you will select only 2 column from a table..
this is part of my codes
...
query = "SELECT n.FirstName,e.Email FROM Names n, Email e WHERE n.contact_id = e.contact_id";
try {
Configuration cfg = new Configuration().addClass(Address.class).addClass(Company.class).addClass(Email.class).addClass(Names.class).addClass(Tel.class);
SessionFactory sf = cfg.buildSessionFactory();
Session s = sf.openSession();
Vector v = new Vector();
v.add(s.find(query));
System.out.println(v.elementAt(0).toString());
...
tnkx