Changeset 8faf48d4f40224a0c9efe58dc57551dd2934a6ff

Show
Ignore:
Timestamp:
01/01/08 12:44:11 (11 months ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1199187851 +0100
git-parent:

[d466783147e805852ea1021d3d17696d3a2e29f7]

git-author:
Christopher Jung <bktheg@web.de> 1199187851 +0100
Message:

Battle: Interface Lifecycle wird nun nicht mehr implementiert

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/battles/Battle.java

    r177e8e0 r8faf48d  
    2323import java.io.FileWriter; 
    2424import java.io.IOException; 
    25 import java.io.Serializable; 
    2625import java.util.ArrayList; 
    2726import java.util.HashMap; 
     
    7069import org.apache.commons.lang.SystemUtils; 
    7170import org.apache.commons.lang.math.RandomUtils; 
    72 import org.hibernate.CallbackException; 
    73 import org.hibernate.Session; 
    74 import org.hibernate.classic.Lifecycle; 
    7571 
    7672/** 
     
    8177@Entity 
    8278@Table(name="battles") 
    83 public class Battle implements Lifecycle,Loggable, Locatable { 
     79public class Battle implements Loggable, Locatable { 
    8480        private static final int LOGFORMAT = 2; 
    8581         
     
    238234         */ 
    239235        public Battle() { 
    240                 // EMPTY 
    241         } 
    242          
    243         public boolean onDelete(Session s) throws CallbackException { 
    244                 return false; 
    245         } 
    246  
    247         public void onLoad(Session s, Serializable id) { 
    248236                this.addCommanders.add(0, new ArrayList<Integer>()); 
    249237                this.addCommanders.add(1, new ArrayList<Integer>()); 
    250         } 
    251  
    252         public boolean onSave(Session s) throws CallbackException {      
    253                 return false; 
    254         } 
    255  
    256         public boolean onUpdate(Session s) throws CallbackException { 
    257                 return false; 
    258238        } 
    259239