emmanuel wrote:
Hibernate *may* load (compile at runtime) HQL in mapping files in the init process, and thus fail at the very begining. But I've never tested.
Hi Emmanuel,
Actually, its the failure at runtime that I'm trying to avoid! I'm looking for a solution whereby I catch the errors when I recompile my code, NOT when I run it.
--snip from original post:
For example, I might have a query:
"from object as o where o.name = ?"
If the attribute 'name' changes in o, the query, because its a string, won't throw a compile exception, and I won't know that there is a problem until runtime. Is there a way around this?
--end snip
This problem would remain even if Hibernate does compile HQL at runtime, because we are still talking runtime and not compile time.
Well, thanks for the suggestions/thoughts!
Best regards,
Mark