#1651 - ENH: Support change to io.ebean.Model that supports named databases (other than default database)

This commit is contained in:
rob bygrave
2019-03-13 15:05:08 +13:00
parent 0230e3e253
commit 435e1f61fe
@@ -64,7 +64,7 @@ public class DeployCreateProperties {
* </p>
*/
private boolean ignoreFieldByName(String fieldName) {
if (fieldName.startsWith("_ebean_")) {
if (fieldName.startsWith("_ebean_") || fieldName.equals("_$targetDatabase")) {
// ignore Ebean internal fields
return true;
}