[jboss-cvs] jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate ...
Gavin King
gavin.king at jboss.com
Thu Nov 16 21:49:04 EST 2006
User: gavin
Date: 06/11/16 21:49:04
Modified: examples/hibernate/src/org/jboss/seam/example/hibernate
Booking.java BookingListAction.java
ChangePasswordAction.java Hotel.java
HotelBookingAction.java LoginAction.java
RegisterAction.java User.java
Log:
remove lots of create=true
Revision Changes Path
1.3 +2 -1 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/Booking.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Booking.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/Booking.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Booking.java 4 May 2006 23:42:06 -0000 1.2
+++ Booking.java 17 Nov 2006 02:49:04 -0000 1.3
@@ -1,4 +1,4 @@
-//$Id: Booking.java,v 1.2 2006/05/04 23:42:06 gavin Exp $
+//$Id: Booking.java,v 1.3 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import java.io.Serializable;
@@ -167,6 +167,7 @@
this.creditCardExpiryYear = creditCardExpiryYear;
}
+ @Override
public String toString()
{
return "Booking(" + user + ","+ hotel + ")";
1.2 +2 -2 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/BookingListAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BookingListAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/BookingListAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- BookingListAction.java 23 Jan 2006 11:19:39 -0000 1.1
+++ BookingListAction.java 17 Nov 2006 02:49:04 -0000 1.2
@@ -1,4 +1,4 @@
-//$Id: BookingListAction.java,v 1.1 2006/01/23 11:19:39 theute Exp $
+//$Id: BookingListAction.java,v 1.2 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import static org.jboss.seam.ScopeType.SESSION;
@@ -19,7 +19,7 @@
@LoggedIn
public class BookingListAction implements Serializable
{
- @In(create=true)
+ @In
private Session bookingDatabase;
@In
1.4 +2 -2 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/ChangePasswordAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ChangePasswordAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/ChangePasswordAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ChangePasswordAction.java 4 May 2006 23:42:06 -0000 1.3
+++ ChangePasswordAction.java 17 Nov 2006 02:49:04 -0000 1.4
@@ -1,4 +1,4 @@
-//$Id: ChangePasswordAction.java,v 1.3 2006/05/04 23:42:06 gavin Exp $
+//$Id: ChangePasswordAction.java,v 1.4 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import org.hibernate.Session;
@@ -15,7 +15,7 @@
@In @Out
private User user;
- @In(create=true)
+ @In
private Session bookingDatabase;
private String verify;
1.2 +2 -1 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/Hotel.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Hotel.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/Hotel.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Hotel.java 23 Jan 2006 11:19:39 -0000 1.1
+++ Hotel.java 17 Nov 2006 02:49:04 -0000 1.2
@@ -1,4 +1,4 @@
-//$Id: Hotel.java,v 1.1 2006/01/23 11:19:39 theute Exp $
+//$Id: Hotel.java,v 1.2 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import java.io.Serializable;
@@ -84,6 +84,7 @@
this.state = state;
}
+ @Override
public String toString()
{
return "Hotel(" + name + "," + address + "," + city + "," + state + "," + zip + ")";
1.6 +3 -3 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/HotelBookingAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HotelBookingAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/HotelBookingAction.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- HotelBookingAction.java 2 Jul 2006 17:02:37 -0000 1.5
+++ HotelBookingAction.java 17 Nov 2006 02:49:04 -0000 1.6
@@ -1,4 +1,4 @@
-//$Id: HotelBookingAction.java,v 1.5 2006/07/02 17:02:37 gavin Exp $
+//$Id: HotelBookingAction.java,v 1.6 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import static org.jboss.seam.ScopeType.CONVERSATION;
@@ -24,7 +24,7 @@
public class HotelBookingAction implements Serializable
{
- @In(create=true)
+ @In
private Session bookingDatabase;
private String searchString;
@@ -47,7 +47,7 @@
@In(required=false)
private transient BookingListAction bookingList;
- @In(create=true)
+ @In
private transient FacesMessages facesMessages;
public String getSearchString()
1.3 +4 -4 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/LoginAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LoginAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/LoginAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- LoginAction.java 26 Mar 2006 21:30:37 -0000 1.2
+++ LoginAction.java 17 Nov 2006 02:49:04 -0000 1.3
@@ -1,4 +1,4 @@
-//$Id: LoginAction.java,v 1.2 2006/03/26 21:30:37 gavin Exp $
+//$Id: LoginAction.java,v 1.3 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import static org.jboss.seam.ScopeType.STATELESS;
@@ -21,13 +21,13 @@
@In @Out
private User user;
- @In(create=true)
+ @In
private Session bookingDatabase;
@In
private Context sessionContext;
- @In(create=true)
+ @In
private FacesMessages facesMessages;
public String login()
1.4 +3 -3 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/RegisterAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: RegisterAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/RegisterAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- RegisterAction.java 4 May 2006 23:42:06 -0000 1.3
+++ RegisterAction.java 17 Nov 2006 02:49:04 -0000 1.4
@@ -1,4 +1,4 @@
-//$Id: RegisterAction.java,v 1.3 2006/05/04 23:42:06 gavin Exp $
+//$Id: RegisterAction.java,v 1.4 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import static org.jboss.seam.ScopeType.EVENT;
@@ -19,10 +19,10 @@
@In
private User user;
- @In(create=true)
+ @In
private Session bookingDatabase;
- @In(create=true)
+ @In
private FacesMessages facesMessages;
private String verify;
1.4 +2 -1 jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/User.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: User.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/src/org/jboss/seam/example/hibernate/User.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- User.java 12 Oct 2006 05:52:18 -0000 1.3
+++ User.java 17 Nov 2006 02:49:04 -0000 1.4
@@ -1,4 +1,4 @@
-//$Id: User.java,v 1.3 2006/10/12 05:52:18 gavin Exp $
+//$Id: User.java,v 1.4 2006/11/17 02:49:04 gavin Exp $
package org.jboss.seam.example.hibernate;
import static org.jboss.seam.ScopeType.SESSION;
@@ -66,6 +66,7 @@
this.username = username;
}
+ @Override
public String toString()
{
return "User(" + username + ")";
More information about the jboss-cvs-commits
mailing list