Exception of the Day:
October 31, 2007 – 7:34 pmThis was my favorite exception that was thrown at me today:
javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapping.Column(otherNames)]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
The type was very clearly stated as List<PersonName> otherNames. I’m sure there’s either something obvious I’m missing, or it’s broken. Regardless it will surely cost me hours in the morning.
Edit: It was all for the want of a
@OneToMany() annotation. Luckily didn’t take me long to find.