English 中文(简体)
JPA/Glassfish 3.0.1 java.lang.IllegalStateException: 同步进行
原标题:JPA/Glassfish 3.0.1 java.lang.IllegalStateException: During synchronization

我的班级模式包含一个与说明挂钩的班级。 我谨慎地通过添加著名的“漫画”加以正确使用。 PERSIST。 www.un.org/Depts/DGACM/index_french.htm

“java.lang.IllegalStateException: 在同步期间,通过没有标记的“普通普通大众”模式的关系发现了新物体。

我在来自图书馆的几个网站发现,但是没有更多的资料。

感谢您的帮助

@OneToOne(optional=true, cascade=CascadeType.ALL)
private Localisation localisation;
@ManyToOne(cascade=CascadeType.ALL)
private Device device;
@ManyToOne(cascade=CascadeType.ALL)
private Project project;
问题回答

由于我的关系是双向的,但我只需要确定管理关系关系的等级。 但这只是头号。 添加 cas。 无论对双方都,它都是完美的!





相关问题
Entity Framework with File-Based Database

I am in the process of developing a desktop application that needs a database. The application is currently targeted to SQL Express 2005 and works wonderfully. However, I m not crazy about having ...

Assistance with CakePHP model relationships

How would I represent the following in a CakePHP model? Product ======= product_id .... Cart ==== cart_id .... Carts_Products ============== cart_id product_id quantity

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How are Models (in MVC) and DAOs supposed to interact?

How are models and DAOs supposed to interact? I m in the process of putting together a simple login module and I m unsure where to put the "business logic." If I put the logic with the data in the ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签