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
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 Details
-
CustomDbTypeMapping
public CustomDbTypeMapping(DbType type, String columnDefinition, io.ebean.annotation.Platform platform)Create a mapping. -
CustomDbTypeMapping
Create a mapping that should apply to all the database platforms.
-
-
Method Details
-
getType
Return the DB type the mapping applies to. -
getColumnDefinition
Return the DB column definition to use. -
getPlatform
Return the platform this mapping should apply to. Null means it applied to all platforms.
-