From: Amir P. (JIRA) <no...@at...> - 2006-07-31 22:33:16
|
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 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.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |