|
From: <leg...@at...> - 2003-08-14 00:02:09
|
The following issue has been updated:
Updater: Gavin King (mailto:ga...@in...)
Date: Wed, 13 Aug 2003 6:51 PM
Comment:
Actually, there is ClassPersister.getClassMetadata(), which CustomPersister implements as "return null" and AbstractEntityPersister implements as "return this".
But whats happening is that getAllClassMetadata() just returns the underlying collection of ClassPersisters. So its actually just a dumb bug in SessionFactoryImpl .... that I didn't see at first, because I forgot about custom persisters!
I changed this issue to "bug".
Changes:
type changed from Improvement
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-258
Summary: Not all ClassPersister's implements ClassMetadata
Type: Bug
Status: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.1
Assignee:
Reporter: Max Rydahl Andersen
Created: Wed, 13 Aug 2003 2:46 PM
Updated: Wed, 13 Aug 2003 6:51 PM
Description:
When using a CustomPersister the only requirement is that it extends ClassPersister - this makes it possible to have SessionFactory return objects in getAllClassMetadata() that does NOT implement ClassMetadata.
This is not good for tools like hibern8ide and the uniformity of the api.....should ClassPersister extend ClassMetadata to enforce the "contract" ?
Gavin: this "functionallity" is the reason you get an exception in hibern8ide - just add Custom.hbm.xml and you'll see it everytime ;)
---------------------------------------------------------------------
JIRA INFORMATION:
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.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|