Package io.ebean.config
Class CustomDbTypeMapping
- java.lang.Object
-
- io.ebean.config.CustomDbTypeMapping
-
public class CustomDbTypeMapping extends Object
Custom mappings for DB types that override the default.
-
-
Constructor Summary
Constructors Constructor Description CustomDbTypeMapping(DbType type, String columnDefinition)Create a mapping that should apply to all the database platforms.CustomDbTypeMapping(DbType type, String columnDefinition, io.ebean.annotation.Platform platform)Create a mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnDefinition()Return the DB column definition to use.io.ebean.annotation.PlatformgetPlatform()Return the platform this mapping should apply to.DbTypegetType()Return the DB type the mapping applies to.
-
-
-
Constructor Detail
-
CustomDbTypeMapping
public CustomDbTypeMapping(DbType type, String columnDefinition, io.ebean.annotation.Platform platform)
Create a mapping.
-
CustomDbTypeMapping
public CustomDbTypeMapping(DbType type, String columnDefinition)
Create a mapping that should apply to all the database platforms.
-
-
Method Detail
-
getColumnDefinition
public String getColumnDefinition()
Return the DB column definition to use.
-
getPlatform
public io.ebean.annotation.Platform getPlatform()
Return the platform this mapping should apply to. Null means it applied to all platforms.
-
-