0

Is there any hibernate utility which allows to persist xml values in database without marshaling it into java classes?

1

2 Answers 2

1

No. While I can imagine this is possible with Hibernate, it's the wrong tool for the task. Hibernate was created specifically to map Entities to DB rows.

You will either have to implement a DOM-like structure which defines the entities which Hibernate should use or write the importer using plain JDBC or maybe create some simple entities which you fill from XML and then persist with Hibernate.

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

Comments

0

I think you are using the wrong persistence library, maybe try using iBatis.

Comments

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.