looks like the JoinColumn is adding in the target_id again
which version of Ebean are you using - I fixed something like this not
so long ago (we were generating the column twice while generating the
DDL)
Are you mapping a legacy schema or have is this a new project -
personally I never use compound keys and avoid using the join columns
but I know this doesn't work for legacy dbs.