Add test for old (427) : Binding enum on find throws No ScalarType registered

This commit is contained in:
Rob Bygrave
2014-04-30 00:08:23 +12:00
parent 563293f7a9
commit 68b4aab837
@@ -0,0 +1,19 @@
package com.avaje.tests.query.other;
import org.junit.Test;
import com.avaje.ebean.BaseTestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.MNonEnum;
import com.avaje.tests.model.basic.MNonUpdPropEntity;
public class TestFindWhereUsingEnumerated extends BaseTestCase {
@Test
public void test() {
Ebean.find(MNonUpdPropEntity.class).where().eq("nonEnum", MNonEnum.BEGIN).findList();
}
}