order « HBM « JPA Q&A





1. SortedSet ClassCastException and hbm2java, and set ordering    forum.hibernate.org

I was getting a ClassCastException when I try to load a saved object. It seems that Hibernate was trying to pass in a regular hibernate.Set instead of a SortedSet. It seems that the order in which you list sets in the hbm file makes a difference when generating code. At least I find that all sets listed after a set that ...

2. properties order in HBM vs. columns order in SQL    forum.hibernate.org

Hello, there are two properties calculated with a formula in my mapping (.hbm) file. All of the other properties in this file map directly to table columns. The problem is that in the SQL queries generated by Hibernate the formula calculated properties are placed at the end of the list of columns (despite the fact that in the .hbm file they ...

3. hbm2ddl column ordering    forum.hibernate.org