Skip to content

Commit 3cecda3

Browse files
authored
Merge pull request #12 from ebean-orm/feature/column-length-0
Use @column default length = 0, to support Postgres varchar/text with out any length
2 parents 06ac4f2 + 34a2513 commit 3cecda3

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

jakarta-persistence-api/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<parent>
77
<groupId>org.avaje</groupId>
88
<artifactId>java11-oss</artifactId>
9-
<version>3.9</version>
9+
<version>4.5</version>
1010
</parent>
1111

1212
<groupId>io.ebean</groupId>
1313
<artifactId>jakarta-persistence-api</artifactId>
14-
<version>3.0-RC1</version>
14+
<version>3.1</version>
1515

1616
<build>
1717
<plugins>

javax-persistence-api/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
5-
<groupId>io.ebean</groupId>
6-
<artifactId>persistence-api</artifactId>
7-
<version>3.1-SNAPSHOT</version>
8-
94
<parent>
105
<groupId>org.avaje</groupId>
116
<artifactId>java11-oss</artifactId>
12-
<version>3.9</version>
7+
<version>4.5</version>
138
</parent>
149

10+
<groupId>io.ebean</groupId>
11+
<artifactId>persistence-api</artifactId>
12+
<version>3.1</version>
13+
1514
<licenses>
1615
<license>
1716
<name>Eclipse Public License - v 1.0</name>

javax-persistence-api/src/main/java/javax/persistence/Column.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* (Optional) The column length. (Applies only if a
100100
* string-valued column is used.)
101101
*/
102-
int length() default 255;
102+
int length() default 0;
103103

104104
/**
105105
* (Optional) The precision for a decimal (exact numeric)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.avaje</groupId>
66
<artifactId>java11-oss</artifactId>
7-
<version>3.9</version>
7+
<version>4.5</version>
88
</parent>
99

1010
<groupId>io.ebean</groupId>

0 commit comments

Comments
 (0)