Questions tagged as 'java'

1
answer

Web Service Testing with Arquillian

I'm doing a unit test class and I'm using Arquillian because of the CDI, in this case I'm testing a Web Service for authentication of company users. Here is the source of the test class: @RunWith(Arquillian.class) public class UsuarioWebServic...
asked by 12.03.2014 / 19:11
2
answers

Working with PostgreSQL array data types using Hibernate

How to perform object retrieval and saving using columns of type array using Hibernate ? In my case I want to save String . How do I set% object_to%? I found the net some examples but they did not work. My class model...
asked by 25.03.2014 / 21:49
1
answer

How to record a file in ISO-8859-1 without losing accent

I would like to know how to write a file in ISO-8859-1 and not lose the graphical accent if possible, my doubts come from the following. When defining in Eclipse that the file encoding follows this charset I quoted above, it correctly sav...
asked by 14.03.2014 / 01:32
1
answer

How to ensure that a Servlet is Deployed on Tomcat 7 using Servlet Container 3.0?

I'm developing an application that uses the Servlet 3.0 API via Notes and porting does not need WEB-INF / web.xml file The problem that sometimes when I do Deploy in Tomcat 7 the Servlet is not available and I get a 404 error. There is no err...
asked by 21.03.2014 / 20:26
1
answer

Slow Hibernate Search Index

This is a crosspost I did in stackoverflow in English. It is difficult to understand (and correct) this problem. I'll post it here to see if anyone in our community has ever been through this and knows what might be going on. What happ...
asked by 25.03.2014 / 02:27
1
answer

Foreign key not printed on table

I have an entity that has the OneToOne relationship with another, but the foreign key of the other entity is not being printed on the table, the field is empty Entity that has the OneToOne relationship @Entity public class LivroOrdem impl...
asked by 20.11.2018 / 14:11
1
answer

Java Spring Boot project version

I need to get the value of the version in my spring boot project to create a service that returns this value, the value in question would be version in build.gradle. group = 'br.com.xxxxx' version = '0.0.2' sourceCompatibility = 1.8 I have...
asked by 20.11.2018 / 18:44
1
answer

Differentiate View accessed by a reused ContextMenu in several Views

I'm developing an Android app in which I have two images on a screen, client and your vehicle. I want to show a menu by giving a long click on both images and so on, by clicking on both imageView the same menu is shown, however, how do I di...
asked by 14.12.2014 / 12:23
1
answer

How to not only filter a folder in JAVA - Filter

I'm using a class inherited from Filter in Java to do login control. I made the mapping in Web.xml as follows: <filter> <filter-name>ValidacaoLoginFilter</filter-name> <filter-class>br.com.dgtbr...
asked by 10.04.2014 / 18:50
1
answer

I can not connect Jpa with PostgreSql at all

I'm trying to connect to postgresql , however, without success. My application will be a jsf application and so I'm using persistence. <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com...
asked by 15.04.2014 / 03:56