slyak / spring-data-jpa-extra

spring data jpa with template dynamic query (eg: freemarker,velocity etc.) like mybatis. The master branch already support springboot2+ spring5+
Apache License 2.0
400 stars 116 forks source link

不同包下实体名称重复BUG #34

Closed klguang closed 6 years ago

stormning commented 6 years ago

实际上,sftl文件的名字是以entity名字命名的,你可以定义不同的entityName 当你没有指定EntityName时,entityName恰巧是Bean的simpleName

klguang commented 6 years ago

建议引入更完善的namespace

klguang commented 6 years ago

项目种原来的代码 有过引用entityManager 获取entityName的情况,如果要改的entityName的话,有点工作量

klguang commented 6 years ago

建议引入更完善的namespace,在sftl种用类似mybatis的namespace namespace[org.coderfun.boot.core.entity.User]