mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1880 - Cidr type stored as INET (instead of CIDR) + named as Cdir (typo)
This commit is contained in:
@@ -993,10 +993,10 @@ public final class DefaultTypeManager implements TypeManager {
|
||||
}
|
||||
|
||||
if (offlineMigrationGeneration || postgres) {
|
||||
addType(Cidr.class, new ScalarTypeCdir.Postgres());
|
||||
addType(Cidr.class, new ScalarTypeCidr.Postgres());
|
||||
addType(Inet.class, new ScalarTypeInet.Postgres());
|
||||
} else {
|
||||
addType(Cidr.class, new ScalarTypeCdir.Varchar());
|
||||
addType(Cidr.class, new ScalarTypeCidr.Varchar());
|
||||
addType(Inet.class, new ScalarTypeInet.Varchar());
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -7,11 +7,11 @@ import java.sql.SQLException;
|
||||
import java.sql.Types;
|
||||
|
||||
/**
|
||||
* ScalarType for Cdir to Varchar or Postgres CDIR.
|
||||
* ScalarType for Cidr to Varchar or Postgres CIDR.
|
||||
*/
|
||||
public abstract class ScalarTypeCdir extends ScalarTypeBaseVarchar<Cidr> {
|
||||
public abstract class ScalarTypeCidr extends ScalarTypeBaseVarchar<Cidr> {
|
||||
|
||||
ScalarTypeCdir() {
|
||||
ScalarTypeCidr() {
|
||||
super(Cidr.class, false, ExtraDbTypes.CIDR);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public abstract class ScalarTypeCdir extends ScalarTypeBaseVarchar<Cidr> {
|
||||
/**
|
||||
* Cdir to Varchar.
|
||||
*/
|
||||
public static class Varchar extends ScalarTypeCdir {
|
||||
public static class Varchar extends ScalarTypeCidr {
|
||||
|
||||
@Override
|
||||
public void bind(DataBind b, Cidr value) throws SQLException {
|
||||
@@ -56,7 +56,7 @@ public abstract class ScalarTypeCdir extends ScalarTypeBaseVarchar<Cidr> {
|
||||
/**
|
||||
* Cdir to Postgres CDIR.
|
||||
*/
|
||||
public static class Postgres extends ScalarTypeCdir {
|
||||
public static class Postgres extends ScalarTypeCidr {
|
||||
|
||||
@Override
|
||||
public void bind(DataBind b, Cidr value) throws SQLException {
|
||||
Reference in New Issue
Block a user