[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3318) Allow omitting varchar limit by default in PostgreSQL

Luke Maurer (JIRA) noreply at atlassian.com
Fri May 30 16:10:33 EDT 2008


Allow omitting varchar limit by default in PostgreSQL
-----------------------------------------------------

                 Key: HHH-3318
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3318
             Project: Hibernate3
          Issue Type: New Feature
          Components: core
         Environment: Hibernate 3.2.6, PostgreSQL 8.3.1
            Reporter: Luke Maurer
            Priority: Minor


Essentially, what I'd like is for a String without a given maximum length be mapped as a varchar or text rather than a varchar(255) as is now the case. The maximum doesn't do anything to improve performance or storage efficiency in PostgreSQL, so varchar(255) merely imposes an arbitrary constraint. It would be more idiomatic to use varchar where no limit is given, leaving varchar(n) for cases where the length is limited as a business rule rather than an implementation detail.

(Naturally, one can always use @Lob where it's actually *important* that the column be a varchar or text. So this is definitely minor.)

-- 
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