mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1817 - Rename @DbHstore to @DbMap
This commit is contained in:
@@ -155,7 +155,7 @@ public abstract class BaseTestCase {
|
||||
* so tests that do this need to be skipped for SQL Server.
|
||||
*/
|
||||
public boolean isSqlServer() {
|
||||
return Platform.SQLSERVER17 == platform();
|
||||
return Platform.SQLSERVER == platform().base();
|
||||
}
|
||||
|
||||
public boolean isH2() {
|
||||
@@ -183,7 +183,7 @@ public abstract class BaseTestCase {
|
||||
}
|
||||
|
||||
public boolean isMySql() {
|
||||
return Platform.MYSQL == platform() || Platform.MYSQL55 == platform();
|
||||
return Platform.MYSQL == platform().base();
|
||||
}
|
||||
|
||||
public boolean isHana() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.tests.model.json;
|
||||
|
||||
import io.ebean.annotation.DbHstore;
|
||||
import io.ebean.annotation.DbMap;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
@@ -17,7 +17,7 @@ public class EBasicHstore {
|
||||
String name;
|
||||
|
||||
// fallback to varchar(800) for non-Postgres
|
||||
@DbHstore(length = 800)
|
||||
@DbMap(length = 800)
|
||||
Map<String, String> map;
|
||||
|
||||
@Version
|
||||
|
||||
Reference in New Issue
Block a user