Changeset 8faf48d4f40224a0c9efe58dc57551dd2934a6ff
- 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
| r177e8e0 |
r8faf48d |
|
| 23 | 23 | import java.io.FileWriter; |
|---|
| 24 | 24 | import java.io.IOException; |
|---|
| 25 | | import java.io.Serializable; |
|---|
| 26 | 25 | import java.util.ArrayList; |
|---|
| 27 | 26 | import java.util.HashMap; |
|---|
| … | … | |
| 70 | 69 | import org.apache.commons.lang.SystemUtils; |
|---|
| 71 | 70 | import org.apache.commons.lang.math.RandomUtils; |
|---|
| 72 | | import org.hibernate.CallbackException; |
|---|
| 73 | | import org.hibernate.Session; |
|---|
| 74 | | import org.hibernate.classic.Lifecycle; |
|---|
| 75 | 71 | |
|---|
| 76 | 72 | /** |
|---|
| … | … | |
| 81 | 77 | @Entity |
|---|
| 82 | 78 | @Table(name="battles") |
|---|
| 83 | | public class Battle implements Lifecycle,Loggable, Locatable { |
|---|
| | 79 | public class Battle implements Loggable, Locatable { |
|---|
| 84 | 80 | private static final int LOGFORMAT = 2; |
|---|
| 85 | 81 | |
|---|
| … | … | |
| 238 | 234 | */ |
|---|
| 239 | 235 | 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) { |
|---|
| 248 | 236 | this.addCommanders.add(0, new ArrayList<Integer>()); |
|---|
| 249 | 237 | 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; |
|---|
| 258 | 238 | } |
|---|
| 259 | 239 | |
|---|