简体   繁体   English

我可以在GreenDAO中将实体命名为“属性”吗?

[英]Can I name an entity as “Property” in GreenDAO?

Lets say you have a project and one of the tables or entities is named Property. 假设您有一个项目,表或实体之一被命名为Property。 This is giving me an error in my Android project. 这给我的Android项目带来了错误。 Why we ca't freely call our data model objects the names that we want regardless which ORM we use? 为什么不管我们使用哪个ORM,我们都不能随意地将数据模型对象称为所需的名称?

After many hours I came to know that Property is a reserved word in greenDAO !!! 许多小时后,我才知道Property是greenDAO中的保留字! so i changed it to Property_! 所以我将其更改为Property_!

I know this sounds weird but if any one knows I am wrong please let me know. 我知道这听起来很奇怪,但是如果有人知道我错了,请告诉我。 No one ever posted anything related to this issue anywhere so I decided to save some ones time by posting it here. 没有人在任何地方发布与此问题相关的任何内容,因此我决定通过在此处发布来节省一些时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM