DBFlow icon indicating copy to clipboard operation
DBFlow copied to clipboard

Default column name for FKs

Open OptimistNot opened this issue 11 years ago • 2 comments

Here's the deal, i have my fk with columnName defined in references, and also i have @Column definition that put name default as i can't define name in it... so on update im getting SQLexception that default name (my variable name) does not exists in db as a field, and it make sense. But i want that field associated to db name...i can't even...any solution? P.S. I update with update transaction using gson to convert data i receive.

OptimistNot avatar Sep 11 '15 18:09 OptimistNot

need more information. be helpful with sample code. This is a couple months old so close this if you had your question answered.

agrosner avatar Nov 15 '15 19:11 agrosner

i found solution using @SerializedName and some name tricks. But still you should add support for private foreign keys. At this moment i can't use private.

OptimistNot avatar Nov 16 '15 11:11 OptimistNot