yes .. it will work not raise a warning if the field is not defined at all but it will then throw the exception, which is what I would expect.

and yes .. the persistence api is a bit iffy here as we of course cannot determine a fixed target class for many (actually most) cases.