You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当define table 的时候, table name 是define在@table的name里, 如下例:
====================================================== @entity @DaTa @table(name = "category", indexes = {@Index(name = "index_category_name", columnList = "categoryName", unique = true)})
public class Category { @id
@GeneratedValue
private long id;
======================================================
但是如果table name 是每日更新的话,比如:
name = category_mm_dd_yyyy
ex:
category_01_01_2017: category generated at 01/01/2017
category_01_02_2017: category generated at 01/02/2017
category_01_03_2017: category generated at 01/03/2017
有没有办法设计 Category object 去dynamically更新table name?
The text was updated successfully, but these errors were encountered:
当define table 的时候, table name 是define在@table的name里, 如下例:
======================================================
@entity
@DaTa
@table(name = "category", indexes = {@Index(name = "index_category_name", columnList = "categoryName", unique = true)})
public class Category {
@id
@GeneratedValue
private long id;
======================================================
但是如果table name 是每日更新的话,比如:
name = category_mm_dd_yyyy
ex:
category_01_01_2017: category generated at 01/01/2017
category_01_02_2017: category generated at 01/02/2017
category_01_03_2017: category generated at 01/03/2017
有没有办法设计 Category object 去dynamically更新table name?
The text was updated successfully, but these errors were encountered: