@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface Table
@Table("t_tab_${cid}")
public class MyPojo{
...
那么 ${cid} 会在运行时被 Nutz.Dao 替换。
如何为动态表名设置参数,请参看 org.nutz.dao.TableName 的文档说明
TableNamepublic abstract String value
Copyright © 2017. All rights reserved.