This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class ChildNotWorks { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Long id; | |
private int order; | |
@ManyToOne(fetch = FetchType.LAZY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path("/files/{id}/upload") | |
@POST | |
@Consumes(MediaType.MULTIPART_FORM_DATA) | |
public Response createFileUpload(@PathParam("id") int id, @QueryParam("description") String description, | |
Attachment attachment, @Context UriInfo uriInfo) { | |
FileUpload item = uploadController.createFileUpload(id, description, attachment); | |
URI uri = uriInfo.getAbsolutePathBuilder().path(Integer.toString(item.getId())).build(); | |
return Response.created(uri).entity(item.getId()).build(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.superbiz; | |
import java.io.PrintWriter; | |
import java.net.URL; | |
import java.util.Set; | |
import javax.annotation.Resource; | |
import javax.naming.NamingException; | |
import javax.naming.Reference; | |
import javax.resource.ResourceException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test.api.events; | |
import java.io.IOException; | |
import java.time.Duration; | |
import javax.annotation.PostConstruct; | |
import javax.annotation.PreDestroy; | |
import javax.annotation.Resource; | |
import javax.ejb.Lock; | |
import javax.ejb.LockType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence | |
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> --> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
version="2.0"> | |
<persistence-unit name="conveyancing"> | |
<jta-data-source>conveyancing</jta-data-source> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Server version name: Apache Tomcat (TomEE)/9.0.22 (8.0.0) | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Server built: Jul 4 2019 14:20:06 UTC | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Server version number: 9.0.22.0 | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke OS Name: Linux | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke OS Version: 5.5.15-200.fc31.x86_64 | |
25-Apr-2020 17:26:46.872 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Architecture: amd64 | |
25-Apr-2020 17:26:46.872 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.fc31.x86_64/jre | |
25-Apr-2020 17:26:46.872 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke JVM Version: 1.8.0_242-b08 | |
25-Apr-20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Server version name: Apache Tomcat (TomEE)/9.0.22 (8.0.0) | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Server built: Jul 4 2019 14:20:06 UTC | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Server version number: 9.0.22.0 | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke OS Name: Linux | |
25-Apr-2020 17:26:46.871 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke OS Version: 5.5.15-200.fc31.x86_64 | |
25-Apr-2020 17:26:46.872 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Architecture: amd64 | |
25-Apr-2020 17:26:46.872 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.fc31.x86_64/jre | |
25-Apr-2020 17:26:46.872 INFO [main] sun.reflect.NativeMethodAccessorImpl.invoke JVM Version: 1.8.0_242-b08 | |
25-Apr-20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.me.kissy.database.entities.jpa.sales; | |
import java.io.Serializable; | |
import java.util.List; | |
import javax.persistence.CascadeType; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// at line 12 scaleFee.getScaleFeeItems() is in the right order but end of transaction does not reflect this | |
// @OneToMany(mappedBy = "scaleFee", cascade = CascadeType.ALL, orphanRemoval = true) | |
// @OrderColumn | |
// private List<ScaleFeeItem> scaleFeeItems; | |
@Transactional | |
public boolean createScaleFeeScaleFeeItem(Long id) { | |
ScaleFee scaleFee = scaleFeeDb.selectScaleFee(id); | |
if (scaleFee != null) { | |
ScaleFeeItem scaleFeeItem = new ScaleFeeItem(scaleFee, BigDecimal.ZERO, BigDecimal.ZERO, false); | |
scaleFee.getScaleFeeItems().add(scaleFeeItem); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test; | |
import java.io.InputStream; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.PUT; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.PathParam; | |
import javax.ws.rs.core.Response; | |
import org.apache.johnzon.mapper.Mapper; | |
import org.apache.johnzon.mapper.MapperBuilder; |
NewerOlder