[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-320?page=co...
]
Luis Medalhas commented on EJB-320:
-----------------------------------
Sorry but this is not a question. I know that there is a workaround.
I think this is an issue, you might not agree and i respect that. I really think the CHAR
value should be a String just like the VARCHAR.
Wrong column type: areccod, expected: varchar(2)
------------------------------------------------
Key: EJB-320
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-320
Project: Hibernate Entity Manager
Issue Type: Bug
Components: EntityManager
Affects Versions: 3.2.1
Environment: Informix IDS 10 on Linux, JBoss 4.2GA, JBoss Seam 2.0 CR2
Reporter: Luis Medalhas
Priority: Critical
I'm using an Entity bean that look something like this
@Entity
@Table(name="ep3prj_t")
public class Project {
@Id
private int aprjkey;
@Length(max=2)
private String areccod;
...
In the database the column "areccod" of the table "ep3prj_t" is
defined as char(2).
When i deploy the application the deployement fails because of this error:
javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column
type: areccod, expected: varchar(2)
I think using a String should be valid for the types CHAR and VARCHAR , i cannot change
the data type because this database is mantained by the customer.
Regards.
--
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