[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3244) Implement support NVARCHAR type
Sergey Derugo (JIRA)
noreply at atlassian.com
Fri Apr 18 10:16:33 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30022 ]
Sergey Derugo commented on HHH-3244:
------------------------------------
I propose introduce the following type:
{code}
package org.hibernate.myextensions;
import org.hibernate.type.StringType;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;
public class NVarcharStringType extends StringType {
@Override
public void set(PreparedStatement st, Object value, int index) throws SQLException {
st.setNString(index, (String) value);// JDBC 4.0 feature
}
@Override
public int sqlType() {
return Types.NVARCHAR;// JDBC 4.0 feature
}
@Override
public String getName() {
return "nstring";
}
}
{code}
> Implement support NVARCHAR type
> --------------------------------
>
> Key: HHH-3244
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3244
> Project: Hibernate3
> Issue Type: New Feature
> Components: core
> Environment: al
> Reporter: Sergey Derugo
>
> JDBC 4.0 allows supports NVARCHAR type, but Hibernate doesn't handle it. Please implement support for NVarchar
--
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