Questions tagged as 'java'

0
answers

Hibernate does not consider field to insert

I have a class Cliente that has composite key: @Entity @Table(name = "Clientes") @IdClass(ClientePK.class) public class Cliente implements Serializable { //@EmbeddedId //private ClientePK clientePK; @Id @Column(name = "...
asked by 24.10.2018 / 16:32
0
answers

How to do multiple Thread in a Java Loop

Problem description I'm doing a Pokedex, in which one of its functions is to filter all pokemons of a certain type. I was able to implement this functionality, but the execution time is not good ... It takes about 25 seconds to go through...
asked by 03.11.2018 / 20:11
3
answers

Multiple query values with JPA / Sprint and Rest

Good morning, I need to make a query via REST where multiple IDs will be sent for example (ID: 1, ID: 2, ID: 3, etc). To search only for an ID I use findById(codigo) , but I do not know how to use multiple data. As I'm using RESTFull, how...
asked by 28.09.2018 / 15:20
0
answers

localhost has redirected you too many times

Good afternoon, I'm trying to direct a system user to an error page if something goes wrong with the session or if the user has denied access to a particular page etc ... I'm using Spring Security for this. in my applicationContext.xml cla...
asked by 08.11.2018 / 22:44
1
answer

How to reference a jar from another project in Eclipse

I'm doing a project to test reports from iReport, and was wondering if you can not include the same jars that already exist in a given project. Eclipse itself offers the option to reference the classes of this other project, the problem that it...
asked by 10.07.2014 / 16:32
1
answer

Jpa with hibernate implementation does not generate tables in postgresql

Good night to all I'm using Jpa with hibernate implementation for among other features generate tables, the problem is that from one time to another the tables stopped being generated, someone else has gone through this Follow my persistence....
asked by 15.07.2014 / 02:08
1
answer

How to put Outlines in the text

I would like to know how to put black outlines in the text JLabel label_name = new JLabel(); label_name.setPreferredSize(new Dimension(100,20)); label_name.setForeground(Color.white); label_name.setText("Este é um exemplo");...
asked by 16.07.2014 / 03:52
1
answer

getOutputStream () has already been called for this response

I've created two error pages for two systems that work within the same Tomcat. One page works normally and the other one has the following error. Within the development environment and homologation the error does not happen. The Tomcat version o...
asked by 17.07.2014 / 14:40
2
answers

Size of columns in a GridView on Android

I have in my android project a gridview that I define as follows: <GridView android:id="@+id/grid1" android:layout_width="600dp" android:layout_height="fill_parent" android:padding="5dp" android:verticalSpacing="5dp" android:horizonta...
asked by 21.02.2014 / 21:14
1
answer

Problem setting up spring data jpa project with Hsqldb

I'm trying to set up a sample project using Spring Data JPA with Hsqldb I made the person class that would be model , the interface repository and a main class to run. I did not create the database because I have a question if...
asked by 23.02.2014 / 22:17