pac.create

This commit is contained in:
Peter Hormanns 2011-07-07 15:12:56 +00:00
parent 9d2d45601a
commit 0080e988c4
4 changed files with 6 additions and 4 deletions

View File

@ -35,7 +35,7 @@ import de.hsadmin.mods.user.UnixUser;
@EntityInfo(name = "Paket")
public class Pac extends AbstractEntity implements Serializable {
private static final long serialVersionUID = 1201899873300190132L;
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = SEQUENCE, generator = "PacsSeqGen")

View File

@ -1,5 +1,6 @@
package de.hsadmin.mods.pac;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
@ -15,8 +16,10 @@ import javax.persistence.TemporalType;
@Entity(name = "PacComponents")
@Table(name = "packet_component")
@IdClass(PacComponentId.class)
public class PacComponent {
public class PacComponent implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Column(name="packet_id", insertable=false, updatable=false, columnDefinition = "integer")
private long pacId;

View File

@ -6,7 +6,7 @@ import java.io.Serializable;
public class PacComponentId implements Serializable {
private static final long serialVersionUID = -3018368675798315892L;
private static final long serialVersionUID = 1L;
private long pacId;
private long basePacId;

View File

@ -42,7 +42,6 @@ public class PacProcessorFactory implements EntityProcessorFactory {
public <T extends AbstractEntity> Processor createCreateProcessor(
EntityManager em, T entity) throws ProcessorException {
Pac pac = (Pac) entity;
String inetAddr = pac.getCurINetAddr().getInetAddr();
String pacName = pac.getName();
String customerEMail = pac.getCustomer().getContractualContact().getEmail();
UnixUser unixUser = null;