mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Simple fixes (#976)
* Should be only the really simple stuff. * Final cleanups.
This commit is contained in:
committed by
Rob Bygrave
parent
8bb884374b
commit
6120a465e1
@@ -119,7 +119,7 @@ public class AnnotationClass extends AnnotationParser {
|
||||
Entity entity = AnnotationBase.findAnnotation(cls,Entity.class);
|
||||
if (entity != null) {
|
||||
descriptor.setEntityType(EntityType.ORM);
|
||||
if (entity.name().equals("")) {
|
||||
if (entity.name().isEmpty()) {
|
||||
descriptor.setName(cls.getSimpleName());
|
||||
} else {
|
||||
descriptor.setName(entity.name());
|
||||
|
||||
Reference in New Issue
Block a user