Questions tagged as 'java'

0
answers

Hibernate JPA - delete children within list

public class A implements Serializable { @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY) @JoinColumn(name = "A_ID") private List<B> bList; } public class B implements Serializable { @JoinCo...
asked by 29.05.2018 / 15:43
0
answers

Get variable value optionalObject []

I am making a select by taking the result as below: Optional<Object[]> oLista = query2.getResultList().stream().findFirst(); oLista2.isPresent { Integer ident = (Integer) oLista.get()[0]; } You need to get the value but yo...
asked by 29.05.2018 / 15:00
1
answer

OneToMany or ManyToOne?

Good evening, I have some basic beginner questions I need to create a timeline that has the following: What events occurred in a given date range, who was born and who died in this range? I have the Person, Event, and Timeline classes. My Tim...
asked by 29.05.2018 / 06:31
0
answers

RxJava2 and Requery Android select ambiguous

I use this function to get ReactiveEntityStore in the application class private static @NonNull ReactiveEntityStore<Persistable> getDataStore(@NonNull Context context) { DatabaseSource source = new DatabaseSource(context, Models.DEFA...
asked by 29.05.2018 / 03:38
0
answers

JAVA error structure

Someone could help me, example at the end of the code has the option for the person to type YES or not, as it would for if the person typed another word, appeared a message Speaking is Yes or No and return the option to the person try again....
asked by 05.06.2018 / 03:39
1
answer

Sendmail Java - Android Studio

Good morning, I'm developing an application, where I have the following doubt. I want to send an e-mail form using Intent's. The code is apparently OK, but when I click the "Send" button the program does nothing. Please, I would like you to help...
asked by 05.06.2018 / 12:30
0
answers

I can not download the header from the .csv file

I'm trying to download data from a table in csv format with header but getting the following error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'Dtremessa' in 'field list' at sun.reflect.NativeConstructorAccessorI...
asked by 28.05.2018 / 17:02
0
answers

Link Combo Box to Mysql database - netbeans

I created a database to store employees and departments. in netbeans I created the employee class and department with their respective ID, put a Frame with a combo box to pull all the employees automatically and departments, right click on the c...
asked by 25.05.2018 / 20:44
0
answers

Error starting Vraptor 4

Uploading the application by Tomcat 7 triggers the following stacktrace : mai 25, 2018 3:42:43 PM org.apache.catalina.core.StandardContext filterStart GRAVE: Exception starting filter vraptor javax.enterprise.event.ObserverExcepti...
asked by 25.05.2018 / 21:21
0
answers

Java CkEditor Plugin

I build the plugin customizable by the ckeditor Builder, play within the library folder and generate the .jar file, but by adding this new lib in the Java / JSF project, it generates an error in the browser console and does not load the editor c...
asked by 01.06.2018 / 16:22