Derek,
Thanks for the tip about the hibernate.show_sql property. The column it's complaining about is not the Id column, but the column that should be inferred as a relation. It's a field that represents a OneToOne composition relation. It looks like -- instead of just using the Id of the thing contained it's using the serialization of the object.
Best wishes,
--greg
On Fri, Jun 12, 2009 at 3:56 PM, Derek Chen-Becker
<derek@...> wrote:
Balthazar Crowley wrote:
> All,
>
> I'm working on a Lift application, and am taking advantage of Scala's
> expressive power. The application generates a JPA-persistence back-end.
> i'm running into a strange situation regarding entity relations. Below
> the signature line is a rendition of what's happening. When the app
> persists an instance of MySampleFuContainer it breaks complaining
Nothing in your code jumps out at me, but since you're using Hibernate I
would suggest adding the
<property name="hibernate.show_sql" value="true" />
property to your persistence.xml and emailing us the output when the
persist fails. At least that should show what it's trying to insert.
It's possible that it expects a uuid type to be a certain length and
somehow it's getting something longer. What is the system-uuid generator?
Derek
--
Balthazar Crowley
Resident Magician
DSLver.com