Hibernate gurus, I have a question on hibernate naming strategy. For table names and column names hibernate creates table names and column names with underscores. but for order by attribute on collection properties a hql query returns with column name not found. e.g. if a person has multiple addresses, and in the person object you have the order-by set to countryName in the one-to-many mapping to Address class, when i creates the schema, the field name is COUNTRY_NAME, but when i lazily load the address collection on person, which is when it gets the collection of Address objects and order it by COUNTRY_NAME, but it says column ADDRESS0.COUNTRYNAME not found. notice the missing underscore in the column name! So my quess is that the naming strategy is not processing the order-by attribute at all. Is that a bug?
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads