error « Filter « JPA Q&A





1. filter param error colon interpreted    forum.hibernate.org

When I use a conversion function in a hibernate filter to convert a string parameter to a date, the colon : character in the time description, e.g. 15:05:03 is always replaced with 15:.05:.03 I've tried escaping it with :: but this results in :.:. Is there some workaround for this ? I'm using hibernate-core 3.3.0.CR1

2. Filter error - can someone help?    forum.hibernate.org

Hi, I'm trying to filter a collection, but I keep getting the following exception. Can someone tell me what I'm doing wrong or point me to better docs on filter clauses? Thanks in advance! -Ben net.sf.hibernate.QueryException: The collection was unreferenced Here's my filter code: List payments = Borrwer.getPayments(); String paymentsFilterStr = "where this.vmthUsed is not null" + " and this.vmthPayment is ...

4. Filter Parameter Error    forum.hibernate.org

I'm using a filter and parameter on a one to many set (a person can have many cats) and when I go to set the parameter, I get a parameter not found message. I'm using Hibernate 3.0.5 and here is the code and trace. MAIN: Session session = HibernateSessionFactory.currentSession(); Transaction tx = session.beginTransaction(); Person person = (Person) session.createCriteria(Person.class).add(Expression.eq("personId", "4000000789")).uniqueResult(); assertNotNull(person ); ...