I'm trying to delete the mapping table entry
between 2 tables.
Say I have Boys and Dogs
so I have a mapping table
MTBL_BOYS_DOGS
BOYID INT,
DOGID INT
So I try to delete from it but I cant after looking up the
object and calling Delete, because there is no ID column
I don't want an id column because to me, these are both
foreign keys
So how do I do this?
MtblBoyDog oMtblBoyDog = MtblBoyDog.findFirst("BOYID=?
and DOGID=?", strBoyId, strDogID);
if (oMtblBoyDog != null)
oMtblBoyDog.delete();
org.javalite.activejdbc.DBException:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown
column 'id' in 'where clause', Query: DELETE FROM
mtbl_boy_dog WHERE id= ?, params: null
--