GreenDao deleting a row in a junction table

I have a junction table | USER_ID | ORDER_ID | now, when I'm trying to delete a row in the table I'm getting does not have a single-column primary key error.

Now of course both of the table's columns are FK, and I can't add a PK column in it because it's a junction table.

I'm using :


Does anyone see my mistake?


The junction table's primary key consists of both columns. This is not supported by greenDAO. says:

While greenDAO does not support n:m relations directly as of now, you can model the join table as a separate entity.

... which would require a separate PK column.

Does an order really need to have multiple users?

Need Your Help

Postgresql computed column

sql postgresql postgresql-9.4

I have a question, that I did not found answer for it.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.