我在運行我的eclipselink項目時出現此錯誤。
[EL Warning]: 2008.12.05 11:47:08.056--java.lang.NoClassDefFoundError: org/jboss/resource/adapter/jdbc/ValidConnectionChecker was thrown on attempt of PersistenceLoadProce
我有一個狀態的集合,我想緩存這個應用程序的生命週期,最好是在第一次調用它之後。我使用EclipseLink作爲我的持久性提供者。在我的EJB3實體我有以下代碼: @Cache
@NamedQueries({
@NamedQuery(
name = "State.findAll",
query = "SELECT s FROM State s",
hin
如何使用EclipseLink的@BasicMap註解來獲取鍵值爲實體且值爲整數的映射?
@Entity
class A {
// This doesn't work, as the key is an entity
@BasicMap
private Map<B, Integer> myMap = new HashMap<B, Integer>();