Click Framework  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: CLK-355
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Bob Schellink
Reporter: Bob Schellink
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Click

add support for hibernate AnnotationConfiguration

Created: 26/Apr/08 12:46 AM   Updated: 20/May/08 12:15 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5 M1


 Description  « Hide
As outlined by Jean-Francois add a createConfiguration method that detects AnnotationConfiguration on the classpath:

try
 {
    // Try to instantiate AnnotationConfiguration by reflection
   Class clazz = Class.forName( "org.hibernate.cfg.AnnotationConfiguration");
   Configuration config = (Configuration) clazz.newInstance();
   return config;
}
catch (Exception e)
{
    // Fall back to normal configuration
    return new Configuration();
}


 All   Comments   Change History      Sort Order:
Bob Schellink [26/Apr/08 01:05 AM]
fix checked into trunk.

Bob Schellink [20/May/08 12:15 AM]
fixed in 1.5-M1