1. JPA/Hibernate DDL generation; CHAR vs. VARCHAR stackoverflow.comI have a JPA/Hibernate data model that I am using the Hibernate hbm2ddl tool to generate database DDL. I have some strings that should be CHAR and some that may be ... |
2. Why JPA, Hibernate and jTDS always uses varchar(8000) for String columns? stackoverflow.comI'm using JPA (Hibernate) and jTDS as my jdbc driver. Whenever the datatype of my entity columns are String, the created prepared statement uses |
3. SQL Server Conversion Exception: Error converting data type varchar to numeric stackoverflow.comI am working on a project where the goal is to convert an existing application to SQL Server. However, I am running into issues with ID generation - specifically, the conversion ... |
4. MAX of a varchar column using HQL stackoverflow.comI am trying to find the maximum value of a varchar column in mySQL DB using hibernate query language. This is the query i am trying to do, and this works fine ... |
5. persisting to varchar: silently ignores too long String forum.hibernate.orgHello! When persisting a String of length eg. 1024 to a varchar column with a length of e.g. 255 (the string does not fit into the column) this is silenty ignored. the string is just cut. i'd like to be advised how to configure hibernate to either throw some exception or any other solution to give me the chance of an ... |
6. Cast varchar to double Problem forum.hibernate.org |
7. Creating binary varchar column in MySQL portably? forum.hibernate.orgMySQL has a "nice" feature where all varchar searches are case-insensitive. I have a column which is a Base64 encoded key which I want to store as a String but need to perform case-insensitive searches on. In mysql you can create a column as "varchar(X) binary" and MySQL will perform all queries on that column as case-sensitive. The problem is that ... |
8. Is it currently possible to store URL as a String/VarChar? forum.hibernate.org |
9. Want to generate CHAR(4) instead of VARCHAR(4) forum.hibernate.orgI have property defined by the xdoclet tags: /** * @hibernate.property * type="com.zetools.wuwi.hibernate.usertype.PartnerStatusUserType" * length="4" * not-null="true" * @return Returns the status. */ which generates appropriate xml: |
10. ilike with DB2 VARCHAR throwing error but CHAR isn't forum.hibernate.orgNot sure why the Criteria query is bombing out on VARCHAR, but not for a CHAR field. (i.e. works for PRO_ABB_DSC but not for PRO_FU_DSC) See SQL generated below... This field was recently changed from CHAR to VARCHAR, so I suspect it may be a VARCHAR related issue...but why is the LCASE not working on VARCHAR? According to DB2 docs, the ... |
11. Oracle VARCHAR insert, string truncated forum.hibernate.orgHibernate version: 2.1.8 Mapping documents: |
12. Null varchar comes out as empty String forum.hibernate.orgI have a column as a varchar named "objective" that accepts |
13. java String longer than 255 chars converts to varchar(255) forum.hibernate.org |
14. cast to VARCHAR(1024) in hql forum.hibernate.org |
15. More than 255 varchar's with a string type... forum.hibernate.orgpackage de.leibert.util; import org.hibernate.dialect.MySQL5InnoDBDialect; import java.sql.Types; public class FLMysqlDialect extends MySQL5InnoDBDialect{ public FLMysqlDialect() { super(); } protected void registerVarcharTypes() { registerColumnType( Types.VARCHAR, "longtext" ); registerColumnType( Types.VARCHAR, "varchar(2000)" ); ... |
16. Annotation to generate char() instead of varchar() forum.hibernate.orgimport java.sql.Types; import org.hibernate.dialect.MySQL5InnoDBDialect; public class OwnDialect extends MySQL5InnoDBDialect { public OwnDialect() { super(); registerColumnType( Types.VARCHAR, "char" ); //the "255" marks the maximum length, for ... |
17. HB JPA storing Enum on varchar using ordinal values forum.hibernate.org |