I don't get those errors so it appears its only a requirement when JPA is present. I'll have to read the spec to find out if that's a valid assertion.
On Wed, Jan 20, 2010 at 12:20 PM, Marvin Addison <marvin.addi...@gmail.com>wrote: > I saw your commit to upgrade to hibernate 3.5.0-Beta-2 and that > resolves the persistence-api version problems I reported previously, > yet it reveals new problems: > > javax.persistence.PersistenceException: Unable to find field or > method: class org.jasig.cas.util.HttpClient#acceptableCodes > at > org.hibernate.ejb.util.PersistenceUtilHelper.get(PersistenceUtilHelper.java:95) > at > org.hibernate.ejb.util.PersistenceUtilHelper.isLoadedWithReference(PersistenceUtilHelper.java:76) > at > org.hibernate.ejb.HibernatePersistence$1.isLoadedWithReference(HibernatePersistence.java:167) > at javax.persistence.Persistence$1.isLoaded(Persistence.java:81) > at > org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33) > at > org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112) > at > org.hibernate.validator.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:47) > at > org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:764) > > I noted that in the case above, private fields are annotated that do > not expose public getters. The above problem goes away if I add > public getter methods. I tried this on another similar case in > another class, SamlCompliantUniqueTicketIdGenerator, with the same > results. If the cost of this validation API is the need to add public > getters when they're not needed in terms of the domain model, I'd say > that's prohibitively high. > > M > > -- > You are currently subscribed to cas-dev@lists.jasig.org as: > scott.battag...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-dev > -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev