19 lines
315 B
Java
19 lines
315 B
Java
|
package org.hso.ecommerce.entities;
|
||
|
|
||
|
import javax.persistence.*;
|
||
|
|
||
|
@Entity
|
||
|
@Table(name = "customer_payments")
|
||
|
public class CustomerPayment {
|
||
|
|
||
|
@Id
|
||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
@Basic
|
||
|
public long id;
|
||
|
|
||
|
public int amountCent;
|
||
|
|
||
|
@Embedded
|
||
|
public PaymentMethod payment;
|
||
|
}
|