Don't recall the exact exception as I tried different things.
I didn't use the @AttributeOverride as you did, will give it a try now, hang on.