Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以用 Objectify4 注册多个类吗?我的意思是,两个具有相同类名的实体,例如com.mycompany.MyEntityororg.mycommunity.MyEntity
com.mycompany.MyEntity
org.mycommunity.MyEntity
它会起作用,但您需要为其中一个指定不同的名称:
@Entity(name="OtherEntity")
此名称将成为数据存储中的种类。它默认为类短名称。