Refreshing the session factory doesn't refresh everything
---------------------------------------------------------
Key: HBX-904
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-904
Project: Hibernate Tools
Type: Bug
Versions: 3.2beta8
Reporter: Joseph Marques
i was writting a query that used composite objects, such as:
select new Thing(elt1, elt2) from .....
I changed the constructor arguments for Thing.java and saved them. Then I right-clicked
on the session factory and pressed 'refresh'. I updated my query to pass the new
argument, but it reported:
"org.hibernate.hql.ast.QuerySyntaxException: Unable to locate appropriate constructor
on class [some.long.package.name.Thing] [<the query I was trying to execute>]
Then I tried right-clicking the configuration itself and selecting 'refresh' at
this higher level...but I still got the same error.
Then I tried closing and re-opening the session factory (again, rlght-click context menu
on the configuration). This time it worked.
So I guess I'm just wondering why refresh doesn't refresh the class definitions
too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira