Changeset e3938f68c1b1b99ef7ae07c877a78bb7b4bc409c

Show
Ignore:
Timestamp:
05/29/07 13:25:11 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1180437911 +0200
git-parent:

[3924571cbcbb46f262ef7a841ae1b4111999d308]

git-author:
Christopher Jung <bktheg@web.de> 1180437911 +0200
Message:

Ein paar weitere Entitaeten hinzugefuegt und bestehende gefixt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/entities/Academy.java

    r3924571 re3938f6  
    2525import javax.persistence.JoinColumn; 
    2626import javax.persistence.ManyToOne; 
    27 import javax.persistence.OneToOne; 
    2827import javax.persistence.Table; 
    2928 
  • src/net/driftingsouls/ds2/server/entities/Forschungszentrum.java

    r3924571 re3938f6  
    1919package net.driftingsouls.ds2.server.entities; 
    2020 
     21import javax.persistence.Entity; 
    2122import javax.persistence.FetchType; 
    2223import javax.persistence.GeneratedValue; 
     
    2526import javax.persistence.ManyToOne; 
    2627import javax.persistence.Table; 
    27  
    28 import org.hibernate.annotations.Immutable; 
    2928 
    3029import net.driftingsouls.ds2.server.bases.Base; 
     
    3534 * 
    3635 */ 
     36@Entity 
    3737@Table(name="fz") 
    38 @Immutable 
    3938public class Forschungszentrum { 
    4039        @Id @GeneratedValue 
  • src/net/driftingsouls/ds2/server/ships/Ship.java

    r3924571 re3938f6  
    2828import javax.persistence.Table; 
    2929 
     30import net.driftingsouls.ds2.server.cargo.Cargo; 
    3031import net.driftingsouls.ds2.server.framework.User; 
    3132 
    3233import org.hibernate.annotations.Generated; 
    3334import org.hibernate.annotations.GenerationTime; 
     35import org.hibernate.annotations.Type; 
    3436 
    3537/** 
     
    4951        private String name;  
    5052        private int type;  
    51         private String cargo; 
     53        @Type(type="cargo") 
     54        private Cargo cargo; 
    5255        private int x; 
    5356        private int y; 
     
    152155         * @return Der Cargo 
    153156         */ 
    154         public String getCargo() { 
    155                 return this.cargo
     157        public Cargo getCargo() { 
     158                return new Cargo(this.cargo)
    156159        } 
    157160         
     
    160163         * @param cargo Der neue Cargo 
    161164         */ 
    162         public void setCargo(String cargo) { 
    163                 this.cargo = cargo
     165        public void setCargo(Cargo cargo) { 
     166                this.cargo = new Cargo(cargo)
    164167        } 
    165168         
  • web/WEB-INF/cfg/hibernatemappings.xml

    r3924571 re3938f6  
    2929        <!-- global_sectortemplates [net.driftingsouls.ds2.server.SectorTemplateManager migrieren] --> 
    3030        <mapping class="net.driftingsouls.ds2.server.entities.GtuWarenKurse" /> 
    31         <!-- gtu_zwischenlager --
    32         <!-- handel --
    33         <!-- inttutorial --
    34         <!-- jumpnodes --
    35         <!-- jumps --
     31        <mapping class="net.driftingsouls.ds2.server.entities.GtuZwischenlager" /
     32        <mapping class="net.driftingsouls.ds2.server.entities.Handel" /
     33        <mapping class="net.driftingsouls.ds2.server.entities.IntTutorial" /
     34        <mapping class="net.driftingsouls.ds2.server.entities.JumpNode" /
     35        <mapping class="net.driftingsouls.ds2.server.entities.Jump" /
    3636        <!-- logging --> 
    3737        <!-- nebel --> 
     
    5454        <!-- scripts --> 
    5555        <!-- sectors --> 
    56         <!-- sessions --> 
    5756        <!-- ship_fleets --> 
    5857        <!-- ship_loot --> 
     
    6564        <!-- skn_channels --> 
    6665        <!-- skn_visits --> 
    67         <!-- smilies --> 
    6866        <!-- stats_cargo --> 
    6967        <!-- stats_gtu -->