Rcp with eclipselink支持动态编织

时间:2012-05-08 09:43:02

标签: java eclipselink

我在rcp应用程序中使用eclipselink,当第一次应用程序使用数据库时,我收到这些警告消息。此应用程序滞后1-2秒,直到jpa成功登录。如何停止此警告,此警告是否滞后于应用程序?

[EL Info]: 2012-05-08 12:28:31.186--ServerSession(981252826)--EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461
[EL Warning]: 2012-05-08 12:28:31.774--ServerSession(981252826)--Reverting the lazy setting on the OneToOne or ManyToOne attribute x for the entity class [class y] since weaving was not enabled or did not occur.
[EL Warning]: 2012-05-08 12:28:31.775--ServerSession(981252826)--Reverting the lazy setting on the OneToOne or ManyToOne attribute xx for the entity class [class yy] since weaving was not enabled or did not occur.
[EL Warning]: 2012-05-08 12:28:31.775--ServerSession(981252826)--Reverting the lazy setting on the OneToOne or ManyToOne attribute xxx for the entity class [class yyy] since weaving was not enabled or did not occur.
[EL Info]: 2012-05-08 12:28:31.969--ServerSession(981252826)--bundleresource://46.fwk1596783631:2_Management login successful

1 个答案:

答案 0 :(得分:0)

对于答案来说可能为时已晚,但它与ManyToOne或OneToOne关系以及LAZY加载有关。你可能会使用它,为此,eclipselink必须编织字节码(.class文件)。如果eclipselink无法编织代码(由于某些原因),那么它就不能使用LAZY加载....所以这可能是你的应用程序滞后的原因(如果不是LAZY则是EAGER加载,这可能需要一些额外的时间,直到从DB获取数据)。