geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1038900 - /geronimo/daytrader/trunk/modules/entities/src/main/java/org/apache/geronimo/samples/daytrader/beans/OrderDataBean.java
Date Thu, 25 Nov 2010 03:27:41 GMT
Author: xiaming
Date: Thu Nov 25 03:27:41 2010
New Revision: 1038900

URL: http://svn.apache.org/viewvc?rev=1038900&view=rev
Log:
DAYTRADER-63 rollback the change since it cause fullejb mode operation failures

Modified:
    geronimo/daytrader/trunk/modules/entities/src/main/java/org/apache/geronimo/samples/daytrader/beans/OrderDataBean.java

Modified: geronimo/daytrader/trunk/modules/entities/src/main/java/org/apache/geronimo/samples/daytrader/beans/OrderDataBean.java
URL: http://svn.apache.org/viewvc/geronimo/daytrader/trunk/modules/entities/src/main/java/org/apache/geronimo/samples/daytrader/beans/OrderDataBean.java?rev=1038900&r1=1038899&r2=1038900&view=diff
==============================================================================
--- geronimo/daytrader/trunk/modules/entities/src/main/java/org/apache/geronimo/samples/daytrader/beans/OrderDataBean.java
(original)
+++ geronimo/daytrader/trunk/modules/entities/src/main/java/org/apache/geronimo/samples/daytrader/beans/OrderDataBean.java
Thu Nov 25 03:27:41 2010
@@ -105,10 +105,14 @@ public class OrderDataBean implements Se
     private QuoteDataBean quote;
     
     // Cause sell operation failed, see JIRA DAYTRADER-63 for details.
-    //@OneToOne(fetch=FetchType.LAZY)
-    //@JoinColumn(name = "HOLDING_HOLDINGID")
-    // Cause sell operation failed, see JIRA DAYTRADER-63 for details.
-    @Transient    
+    // rollback change for fullejb3 mode operation failures
+    // In JPA programming mode, the database schema cannot be created by JPA provider, 
+    // instead, user need to create db schema by self. And cannot enalbe foreign key constraint,
+    // Since the foreign key constraint is controled by code logic, not database logic.
+    @OneToOne(fetch=FetchType.LAZY)
+    @JoinColumn(name = "HOLDING_HOLDINGID")
+    // rollback change for fullejb3 mode operation failures
+    //@Transient    
     private HoldingDataBean holding;
 
 //    @Version



Mime
View raw message