cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r398705 - in /incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example: ./ src/main/java/org/apache/cayenne/jpa/example/ src/main/java/org/apache/cayenne/jpa/example/entity/
Date Mon, 01 May 2006 21:54:17 GMT
Author: aadamchik
Date: Mon May  1 14:54:14 2006
New Revision: 398705

URL: http://svn.apache.org/viewcvs?rev=398705&view=rev
Log:
class enhancer - first cut

Modified:
    incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/pom.xml
    incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
    incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Department.java
    incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Person.java

Modified: incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/pom.xml?rev=398705&r1=398704&r2=398705&view=diff
==============================================================================
--- incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/pom.xml (original)
+++ incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/pom.xml Mon May  1 14:54:14
2006
@@ -35,6 +35,13 @@
 			<version>8.0-312.jdbc3</version>
 			<scope>runtime</scope>
 		</dependency>
+		
+		<dependency>
+			<groupId>cglib</groupId>
+			<artifactId>cglib-nodep</artifactId>
+			<version>2.1_3</version>
+			<scope>runtime</scope>
+		</dependency>
 	</dependencies>
 	
 	<build>

Modified: incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java?rev=398705&r1=398704&r2=398705&view=diff
==============================================================================
--- incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
(original)
+++ incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/Main.java
Mon May  1 14:54:14 2006
@@ -20,6 +20,7 @@
 
 import javax.persistence.EntityManager;
 import javax.persistence.Persistence;
+import javax.persistence.PersistenceContextType;
 import javax.persistence.Query;
 
 import org.apache.cayenne.jpa.example.entity.Department;
@@ -49,7 +50,7 @@
     Main() {
         this.entityManager = Persistence
                 .createEntityManagerFactory("HRPersistenceUnit")
-                .createEntityManager();
+                .createEntityManager(PersistenceContextType.EXTENDED);
         this.logger = LogFactory.getLog("3t-client-demo");
     }
 

Modified: incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Department.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Department.java?rev=398705&r1=398704&r2=398705&view=diff
==============================================================================
--- incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Department.java
(original)
+++ incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Department.java
Mon May  1 14:54:14 2006
@@ -34,13 +34,13 @@
 
     @Id
     protected int department_id;
-    
+
     protected String name;
     protected String description;
-    
+
     @OneToMany
     protected List<Person> employees;
-    
+
     @OneToMany
     protected List<Project> projects;
 

Modified: incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Person.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Person.java?rev=398705&r1=398704&r2=398705&view=diff
==============================================================================
--- incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Person.java
(original)
+++ incubator/cayenne/jpa/trunk/cayenne-jpa-annotations-example/src/main/java/org/apache/cayenne/jpa/example/entity/Person.java
Mon May  1 14:54:14 2006
@@ -18,6 +18,7 @@
 import java.util.Date;
 import java.util.List;
 
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.Id;
 import javax.persistence.ManyToMany;
@@ -30,8 +31,13 @@
     @Id
     protected int person_id;
 
+    @Column(name = "base_salary")
     protected double baseSalary;
+
+    @Column(name = "date_hired")
     protected Date dateHired;
+
+    @Column(name = "full_name")
     protected String fullName;
 
     @ManyToOne



Mime
View raw message