Hi, i have a SDK project using RoomX.
Resently i'm trying to switch to WCDB, but there's a problem confusing me.
There's an entity class named GroupMember, groupID and userID are two important attributes, and they will be treated as MultiPrimary columns.
For history reason, groupID and userID are attribute names of GroupMember entity, but the corresponding field name in the database table are group_id and user_id.
I have followed the wiki guide to config the build.gradle correctly, and some of DBxxx file are generated successfully. BTW, i'm using ksp. But DBGroupMember is not generated.
This is screenshots for errors:
After checking wiki guides, i found this:
So i changed the MultiPrimary columns name to database table field name, like this:
After rebuild, new error occurs:
If i rename GroupMember attribute names groupID and userID to group_id and user_id directly, it works, but i think it's unacceptable, because theSDK has been accessed by the customer and is running online, This change will result in changes to the access party's business code.
This is a perplexing question for me, any help is welcome.
The language of WCDB
The version of WCDB
The platform of WCDB
The installation of WCDB
What's the issue?
Hi, i have a SDK project using RoomX. Resently i'm trying to switch to WCDB, but there's a problem confusing me. There's an entity class named GroupMember, groupID and userID are two important attributes, and they will be treated as MultiPrimary columns. For history reason, groupID and userID are attribute names of GroupMember entity, but the corresponding field name in the database table are group_id and user_id. I have followed the wiki guide to config the build.gradle correctly, and some of DBxxx file are generated successfully. BTW, i'm using ksp. But DBGroupMember is not generated. This is screenshots for errors:
After checking wiki guides, i found this:
So i changed the MultiPrimary columns name to database table field name, like this:
After rebuild, new error occurs:
If i rename GroupMember attribute names groupID and userID to group_id and user_id directly, it works, but i think it's unacceptable, because theSDK has been accessed by the customer and is running online, This change will result in changes to the access party's business code.
This is a perplexing question for me, any help is welcome.