What error messages do you get on the query method? Also, have you tried: new ArrayList<Person>( getSession().createCriteria( Person.class ).list() );
-----Original Message----- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Thursday, March 02, 2006 9:03 AM To: Tapestry users Subject: Have domain entities to be serializable? How to insert linebreaks in *.properties files? Hi everybody, the subject already says it. ;) My first question is if entity objects (some people call them domain objects) have to be serializable or perhaps just in certain circumstances? The problem is that I have an entity object "Person" and a corresponding DAO PersonDao. In the latter I have a function @SuppressWarnings("unchecked") public List<Person> getAllPersons() { return (List<Person>) getSession().createQuery("from Person").list(); } In the logs (in the meanwhile this works now but only after putting the configuration options in the main tomcat log4j.properties file. The context related log4j files still arent't recognized) I see that the SQL query is performed but the List doesn't seem to be created. I thought perhaps because the cast doesn't work? The second question is how I can insert linebreaks in the values of Tapestry's *.properties files? Thanks! Andreas --------------------------------------------------------------------- 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]
