[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-744) Enumerated Primary Key
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Thu Jun 19 06:47:33 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik resolved ANN-744.
-----------------------------------
Resolution: Fixed
Added test and changed AnnotationBinder.bindId() to properly set the type of the id column to either string or int.
> Enumerated Primary Key
> ----------------------
>
> Key: ANN-744
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-744
> Project: Hibernate Annotations
> Issue Type: Improvement
> Reporter: Anthony Patricio
> Assignee: Hardy Ferentschik
> Priority: Minor
> Fix For: 3.4.0.CR2
>
>
> Allow to use something like
> @Id
> @Enumerated(value = EnumType.STRING)
> @Column(name = "tag")
> private PrefTag tag;
> for the moment we get following exception
> 14:23:57,326 DEBUG [JDBCExceptionReporter] could not load an entity: [com.actual_systems.iceditor.reproduceerror.PrefEntity#2c6d8085fef280aee3efedaee1e3f4f5e1ecdff3f9f3f4e5edf3aee9e3e5e4e9f4eff2aef0f2e5e6e5f2e5eee3e5aed0f2e5e6d4e1e78080808080808080928080f8f2808eeae1f6e1aeece1eee7aec5eef5ed8080808080808080928080f8f0f48087d3c9d4c5dfc9c4] [select prefentity0_.tag as tag47_0_, prefentity0_.value as value47_0_ from preference prefentity0_ where prefentity0_.tag=?]
> org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = bytea
> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548)
--
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
More information about the hibernate-issues
mailing list