2014-02-16 40 views
0

我有一個問題,我需要將某個字段(列)存儲在某個實體中作爲xml數據類型,並使用jpa(eclipse鏈接)處理它們。eclipse鏈接是否爲xml數據類型提供存儲

Does eclipse link provide a way to deal with xml other than no sql? 

Does using no sql require the need of using different type of data 
source and does that mean I cannot use a jta data source to deal with other normal entity? 
Does using xml data type have bad impact on performance? 

回答

2

如果你想使用SQL在JPA,其中的EclipseLink工具,你應該看看JDO,更全面的持久性選項的更多。 JDO用於許多類型的數據存儲,如XML,NoSQL db等...

Google也使用JDO。

這裏有更多的細節鏈接:http://www.datanucleus.org/documentation/products/accessplatform.html

+0

不要ü有直接回答我的問題特別是如果它可以使用JPA完成。閱讀和理解完整的api(JDO)來解決這樣的問題效率不高 –

+0

據我所知,JPA僅適用於關係數據庫。 JDO與JPA的99%相同,只是它具有更多的功能和靈活性。看看這裏:https://db.apache.org/jdo/jdo_v_jpa.html – zmirc

+0

所以它是不可能使用jpa的xml數據類型 –

相關問題