[jboss-cvs] JBossAS SVN: r99719 - projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/entity.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jan 21 04:52:07 EST 2010
Author: lvlcek at redhat.com
Date: 2010-01-21 04:52:06 -0500 (Thu, 21 Jan 2010)
New Revision: 99719
Modified:
projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/entity/Account.java
Log:
minor:
moved constructor after properties
import optimizations
Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/entity/Account.java
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/entity/Account.java 2010-01-21 08:58:39 UTC (rev 99718)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-domain/src/main/java/org/jboss/snowdrop/samples/sportsclub/domain/entity/Account.java 2010-01-21 09:52:06 UTC (rev 99719)
@@ -1,19 +1,10 @@
package org.jboss.snowdrop.samples.sportsclub.domain.entity;
+import javax.persistence.*;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Date;
-import javax.persistence.CascadeType;
-import javax.persistence.Embedded;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToOne;
-import javax.persistence.PrimaryKeyJoinColumn;
-
/**
* @author <a href="mailto:mariusb at redhat.com">Marius Bogoevici</a>
*/
@@ -32,13 +23,6 @@
private Date creationDate;
-
- public Account()
- {
- this.balance = new Balance();
- this.balance.setAmount(BigDecimal.ZERO);
- }
-
@ManyToOne
private Membership membership;
@@ -48,6 +32,13 @@
private Date closeDate;
+
+ public Account()
+ {
+ this.balance = new Balance();
+ this.balance.setAmount(BigDecimal.ZERO);
+ }
+
public long getId()
{
return id;
More information about the jboss-cvs-commits
mailing list