completed initial scaffolding for services
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package zw.qantra.tm.domain.models;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.*;
|
||||
import zw.qantra.tm.domain.enums.ChargeConditionType;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ChargeCondition {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
private UUID id;
|
||||
|
||||
private String name;
|
||||
@Enumerated(EnumType.STRING)
|
||||
private ChargeConditionType type;
|
||||
@Column(columnDefinition = "longtext")
|
||||
private String codes;
|
||||
|
||||
@ManyToMany(mappedBy = "includes")
|
||||
List<Charge> includeCharges;
|
||||
@ManyToMany(mappedBy = "excludes")
|
||||
List<Charge> excludeCharges;
|
||||
}
|
||||
Reference in New Issue
Block a user