pac.create
This commit is contained in:
parent
9d2d45601a
commit
0080e988c4
@ -35,7 +35,7 @@ import de.hsadmin.mods.user.UnixUser;
|
|||||||
@EntityInfo(name = "Paket")
|
@EntityInfo(name = "Paket")
|
||||||
public class Pac extends AbstractEntity implements Serializable {
|
public class Pac extends AbstractEntity implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1201899873300190132L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = SEQUENCE, generator = "PacsSeqGen")
|
@GeneratedValue(strategy = SEQUENCE, generator = "PacsSeqGen")
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package de.hsadmin.mods.pac;
|
package de.hsadmin.mods.pac;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
@ -15,8 +16,10 @@ import javax.persistence.TemporalType;
|
|||||||
@Entity(name = "PacComponents")
|
@Entity(name = "PacComponents")
|
||||||
@Table(name = "packet_component")
|
@Table(name = "packet_component")
|
||||||
@IdClass(PacComponentId.class)
|
@IdClass(PacComponentId.class)
|
||||||
public class PacComponent {
|
public class PacComponent implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name="packet_id", insertable=false, updatable=false, columnDefinition = "integer")
|
@Column(name="packet_id", insertable=false, updatable=false, columnDefinition = "integer")
|
||||||
private long pacId;
|
private long pacId;
|
||||||
|
@ -6,7 +6,7 @@ import java.io.Serializable;
|
|||||||
|
|
||||||
public class PacComponentId implements Serializable {
|
public class PacComponentId implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -3018368675798315892L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private long pacId;
|
private long pacId;
|
||||||
private long basePacId;
|
private long basePacId;
|
||||||
|
@ -42,7 +42,6 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
|||||||
public <T extends AbstractEntity> Processor createCreateProcessor(
|
public <T extends AbstractEntity> Processor createCreateProcessor(
|
||||||
EntityManager em, T entity) throws ProcessorException {
|
EntityManager em, T entity) throws ProcessorException {
|
||||||
Pac pac = (Pac) entity;
|
Pac pac = (Pac) entity;
|
||||||
String inetAddr = pac.getCurINetAddr().getInetAddr();
|
|
||||||
String pacName = pac.getName();
|
String pacName = pac.getName();
|
||||||
String customerEMail = pac.getCustomer().getContractualContact().getEmail();
|
String customerEMail = pac.getCustomer().getContractualContact().getEmail();
|
||||||
UnixUser unixUser = null;
|
UnixUser unixUser = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user