Package io.ebean.config
Class CustomDbTypeMapping
java.lang.Object
io.ebean.config.CustomDbTypeMapping
Custom mappings for DB types that override the default.
-
Constructor Summary
ConstructorDescriptionCustomDbTypeMapping(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 TypeMethodDescriptionReturn the DB column definition to use.io.ebean.annotation.Platform
Return the platform this mapping should apply to.getType()
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.
-