Questions tagged as 'java'

1
answer

Relate entity with more than one entity

Hello, I have the following Client, Vendor and Financial entities in my system. All of them have a list of Contacts, as would a two-way relationship in these ways. public class Client { @OneToMany private List<Contact> contacts }...
asked by 24.07.2015 / 19:36
1
answer

Duplicate mapping error: org.hibernate.DuplicateMappingExceptionn

I'm using Hibernate 5 and am having the following problem: Caused by: org.hibernate.DuplicateMappingException: duplicate import: br.edu.unifeob.entidades.apuracao.Avaliacao refers to both br.edu.unifeob.entidades.apuracao.Avaliacao and br.edu....
asked by 14.08.2015 / 14:22
0
answers

Semaphore: Deadlock detection problems

I did a search here and found nothing to finish my doubts, with that, I hope someone can help me. I'll put the code here, so you can better visualize the problem. Oh, any suggestion of organization of the code and who has responsibility for what...
asked by 23.08.2015 / 21:21
0
answers

JavaMail: MailBox always lowers the same email

I'm downloading emails from Gmail , and saving the ones that are important to my client's system in the database. The problem is when I use the code below, it always returns me the same emails, getting duplicitous. Has anyone ever gone th...
asked by 19.08.2015 / 20:44
1
answer

VRaptor - File upload in IE 8/9 does not work

I'm trying to upload files and it's not working in IE8. NOTE: It works in Chrome and Firefox perfectly. I've been researching and seen that IE 8/9 does not support FormData as enctype . Ex: <form id="form" method="post"...
asked by 29.09.2016 / 20:49
1
answer

What is the difference between RMI and JRMP?

I only know the RMI ... JRMP is just a different way to call the RMI or is it another protocol? In the case of JRMP being another protocol, what is its difference from RMI?     
asked by 08.10.2016 / 18:12
1
answer

How to map a column that does not exist in the database?

I'm having a small problem mapping (JPA) columns to a class in my system. I have some procedures in the bank that do a lot already and I would not like to stop using them, but I do not know how to map. SELECT r.*, ultimo_documento(r.id) as ult...
asked by 06.10.2016 / 05:00
1
answer

Remove Printer Dialog - PrintJob Java

In a Java application I print through PrintJob, but the way I print when I call the Print method, it opens a printer dialog so I can choose which one to print, I tried and could not do with which to print without having to call the dialog. Fo...
asked by 22.05.2015 / 13:58
1
answer

FakeHttpServer breaks when upgrading to Jetty 9

I'm migrating an application that used Jetty 7.4.5.v20110725 to Jetty 9.3.0.M2 , using Maven . I've already updated javax.servlet-api to versão 3.1.0 . But, I'm using FakeHttpServer version 0.3.0 for testing,...
asked by 18.05.2015 / 19:47
0
answers

Empty Bean with PrimeFaces

I created a page with a datatable and to register something I display the form of register in a p:dialog of PrimeFaces works perfectly, but when I create the layout of PrimeFaces to put my page inside the layout and start a...
asked by 01.06.2015 / 23:14