`

can't operate on multiple entity groups in a single transaction.

阅读更多
Caused by: javax.persistence.PersistenceException: Illegal argument
	at org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForNucleusException(NucleusJPAHelper.java:260)
	at org.datanucleus.jpa.EntityTransactionImpl.commit(EntityTransactionImpl.java:122)
	at org.datanucleus.store.appengine.jpa.DatastoreEntityTransactionImpl.commit(DatastoreEntityTransactionImpl.java:55)
	at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:456)
	... 86 more
Caused by: java.lang.IllegalArgumentException: can't operate on multiple entity groups in a single transaction. found both Element {
  type: "Options"
  id: 36
}
 and Element {
  type: "Options"
  id: 37
}

 因为GAE只支持一个事务操作一个实体.

这里讲到了很多GAE开发中的注意点,值得参考:http://www.cnblogs.com/senzjx/archive/2009/09/20/1570669.html

分享到:
评论

相关推荐

    SSD7 选择题。Multiple-Choice

    (c) the number of relationships of that relationship type in which an entity can participate (d) the minimum number of entities that can participate in that relationship type Correct answer is (c...

    Proxy Pattern Informatization Research Based On SaaS

    Abstract—Based on demands in proxy pattern, this article proposes informatization solution of proxy pattern which includes enterprise management, proxy management, franchisee management and supply ...

    Design and Simulation of Multi Channel UART for Serial Communication

    To meet the modern operation microcontroller and digital signal processor we ... And one more advantage in this 4 UART can operate parallel i.e. more devices can able to communicate with the pc randomly

    UE(官方下载)

    You can use a combination of a script and tool to create a single file from multiple files. Sum Column/Selection in Column Mode This power tip demonstrates how to calculate the sum from a column of ...

    java面试题英文版及其答案

    Explain the concept of encapsulation in OOP and how it is achieved in Java.Answer: Encapsulation is a fundamental principle of Object-Oriented Programming (OOP) that involves bundling data and methods...

    statistica 全套教程包括数据挖掘

    The **t-Tests** (independent samples, dependent samples, single sample) are used to compare means between groups or against a specific value. For independent samples, the test assesses whether there ...

    Cryptography in .NET Succinctly(SyncFusion,2015)

    However, just because you can’t see it doesn’t make it any less important. In the modern day, we face threats from cybercrime, terrorists, and our own government snooping on its citizens. Because ...

    polikar2012.pdf

    3. **Stacking**: In stacking, multiple learners are trained on the original dataset, and their outputs are combined to form a new dataset. A meta-classifier is then trained on this new dataset to make...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    More complex inline functions may also be put in a .h file for the convenience of the implementer and callers, though if this makes the .h file too unwieldy you can instead put that code in a ...

    CCNA 第四期 4-2答案

    Multiple sources can transmit over a single channel. Original data streams must be reconstructed at the destination. TDM methods vary depending on the Layer 2 protocol that is used. It allows...

    Java - A Beginner’s Guide - Sixth Edition - Herbert Schildt

    It also covers encapsulation, one of the key principles of OOP, which involves bundling data and methods that operate on the data within a single unit. #### More Data Types and Operators Building on...

    计算机组成教学课件:Chapter2 Machine Instruction.ppt

    In contrast, CISC architectures have a larger, more complex instruction set, allowing multiple operations within a single instruction. RISC processors generally have fewer but more powerful ...

    MMX_Setup_15_0_20_2385.zip

    Use Editor Refactoring’s to refactor an entity at cursor position or operate on selected code. For example press Ctrl+Shift+X to invoke Extract Method for the selected code. Configurable keyboard ...

    Research Advances in Cloud Computing-Springer(2017).pdf

    Today, for almost all the sectors in the world, cloud computing is synonym to on-demand provisioning and delivery of IT services in a pay-as-you-go model. The success story of cloud computing as a ...

    c#primer plus附录

    more than one operator can operate on an operand (because the operators are positioned next to the operand, one on either side), this operand is first processed by the operator of the higher ...

    cisco_router_performance_field_guide.zip

    want a more in-depth fundamental look at how wireless networks operate and all of the fun, new toys (I mean wireless devices) that you can use to implement them, then watch for the new CCNA wireless...

    Lean_manufacturing_Production_flow_and_activities_AX2012

    Many organizations operate in a mixed-mode environment, combining both lean and traditional manufacturing techniques. Microsoft Dynamics AX2012 supports this by allowing the integration of lean ...

    ios-EFQRCode - A better way to operate two-dimensional code in Swift..zip

    EFQRCode 是一个用 Swift 编写的用来生成和识别二维码的库,它基于系统二维码生成与识别进行开发。 - 生成:利用输入的水印图/图标等资源生成各种艺术二维码; - 识别:识别率比 iOS 原生二维码识别率更高。

    中移动c-ran白皮书 C-RAN The Road Towards Green RAN White Paper (v3.0)

    while the BS‟ processing power can‟t be shared with other BSs. Isolated BSs prove costly and difficult to improve spectrum capacity. Lastly, a proprietary platform means mobile operators must ...

Global site tag (gtag.js) - Google Analytics