Caused by: java.lang.StackOverflowError
at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:68)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:279)
at java.base/java.io.File.toPath(File.java:2387)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1264)
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/4be72989-7fb9-4c78-9c45-28d20fb48313n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/05aa4d6c-f5ff-4491-ba00-9648f7b11295n%40googlegroups.com.
public class CustomerRepository implements PanacheRepository<Customer> {
private static final Logger logger = Logger.getLogger(CustomerRepository.class);
@Inject
EntityManager entityManager;
/**
* Find Customer data base on customerId
* @param customerId
*/
@Transactional(REQUIRED)
public Customer findByCustomerId(String customerId) throws IcareBillingException {
logger.info("customerId: "+customerId);
Customer entity= find("customerId",customerId).firstResult();
if(entity == null){
throw new IcareBillingException("Customer with id of " + customerId + " does not exist.");
}
return entity;
}
find("customerId",customerId).firstResult();
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAHTx_0yY5VM6xunLXfsE6mbrmW4iLDJW60trbA%2B4BHX%3D39U%3Dog%40mail.gmail.com.
@Builder
@AllArgsConstructor
@Entity
@NoArgsConstructor
@Getter
@Setter
@ToString
@Table(name = "CUSTOMER")
//@EqualsAndHashCode(callSuper=false)
public class Customer{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "ID", nullable = false, length = 11)
private Integer id;
@Column(name="CUSTOMER_ID", length = 50, unique=true, nullable = false)
private String customerId;
@Column(name = "NAME", length = 50, nullable =false)
private String name;
@Enumerated(EnumType.STRING)
@Column(name = "STATUS",columnDefinition = "enum ('A', 'I') default 'A'", nullable = false, length = 1)
private StatusEnum status;
@JoinColumn(name = "PARENT_ID", referencedColumnName = "ID", nullable = true)
@ManyToOne(fetch = FetchType.LAZY)
private Customer parentId;
}
public enum StatusEnum {
A,I,R,N,P,E
}
You received this message because you are subscribed to a topic in the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/quarkus-dev/7BrNOtzWAHs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CALeTM-nhqYVtce9rbH6iSR4D5QWZETQ1iyzo6%3D%3Dcef-d0a8MtA%40mail.gmail.com.
@Enumerated(EnumType.STRING)
@Column(name = "STATUS",columnDefinition = "enum ('A', 'I') default 'A'", nullable = false,length = 1)
private StatusEnum status;