public final class FieldName extends Object
public static final String _foo =
FieldName.of("foo");
you´ll see an Exception on loading the class. A nice side-effect: if you use this in Queries like q.field(MyEntity._foo).equal("bar")
your IDE is able to track this usage. Using FieldName does not at all replace query validation.Modifier and Type | Class and Description |
---|---|
static class |
FieldName.FieldNameNotFoundException |
Copyright © 2016. All rights reserved.