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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira