1

Is this possible? Situation is that I want to store some XML in my database, but keep it as generic as possible in case we need to deploy it to a difference backend.

I realise I could store it as a String, but I believe MSSQL/Oracle optimise and validate XML if you store it this way, and let you search on it?

1 Answer 1

1

If you provide an implementation of org.hibernate.usertype.UserType you can provide logic for mapping an arbitrary Java type to one or more database columns.

You can view a few examples of UserTypes here:

Or just Google "hibernate usertype" and find many more. :)

Sign up to request clarification or add additional context in comments.

1 Comment

Do you know of any library implementations of XML which would prevent the need of rolling our own implementation?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.