[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-403?page=all ]
Emmanuel Bernard resolved ANN-403:
----------------------------------
Resolution: Incomplete
no user feedback
Improve Java 5 Enums dependency on old fashioned enums
------------------------------------------------------
Key: ANN-403
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-403
Project: Hibernate Annotations
Type: Improvement
Versions: 3.2.0.cr1
Reporter: Amir Pashazadeh
Priority: Minor
Original Estimate: 2 hours
Remaining: 2 hours
Converting from new enum types (like FlushModeType and CacheModeType) to old enum types
(which is used by Query, Critiera, and ... interfaces) is not done well, and well formed.
By adding constructors to new enums this could be much better, and more perform!
I will attach what must have been done in FlushModeType, the same thing must happen to
CacheModeType:
public enum FlushModeType {
/**
* see {@link org.hibernate.FlushMode.ALWAYS}
*/
ALWAYS(FlushMode.ALWAYS),
/**
* see {@link org.hibernate.FlushMode.AUTO}
*/
AUTO(FlushMode.AUTO),
/**
* see {@link org.hibernate.FlushMode.COMMIT}
*/
COMMIT(FlushMode.COMMIT),
/**
* see {@link org.hibernate.FlushMode.NEVER}
*/
NEVER(FlushMode.NEVER);
FlushModeType(FlushMode flushMode) {
this.flushMode = flushMode;
}
private FlushMode flushMode;
/**
* @return old type proper FlushMode
*/
public FlushMode getFlushMode() {
return flushMode;
}
}
--
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