Questions tagged as 'java'

3
answers

What is the best way to send my Spring Boot project to the server?

I'm building my first application Java Spring Boot . At this first experiment, I'm having difficulty using Git and sending it to the server. The main idea would be: I pull to a private repository, example: Bitbucket , and on my serve...
asked by 29.08.2016 / 21:31
1
answer

Delete created entity from a ManyToMany relation

I have a ManyToMany relation between users and profiles mapped with Hibernate : user: id name profile: id profile_name user_profile: user_id profile_id The mapping is done as follows: User:...
asked by 09.06.2016 / 18:22
1
answer

Search using JTextField and JTable

I am having a question about searching a JTable using JTextField. When the person enters the name of the Work in Textfield and click on search, in the JTable is to appear the search result. Myquestionisthis:HowdoIcleanJTableandfillitoutwitht...
asked by 12.06.2016 / 04:04
1
answer

Java - implement serializable [duplicate]

What benefits does the system have in implementing this interface in some java class? What changes in having a class that implements in comparison to one that does not have the implementation, being based that they have the same attributes? An...
asked by 09.06.2016 / 16:16
1
answer

How to create a dynamic JTable?

I have a JTable in my form, I wanted the size (number of rows and columns) of the table to be according to the number that the user type, how to do in java?     
asked by 04.06.2016 / 02:36
2
answers

Where to put comments and javadoc? Model or Controller?

I'm doing an MVC program, but when it comes to describing in%% of what each window does, I was in doubt whether to put those comments in the javadoc (Model) itself, or forms of its windows . Which one would be the most correct? Bec...
asked by 03.06.2016 / 01:48
3
answers

Change Android Fragments

Good people, I'm starting with Android Studio and I'm developing a small app and I made a menu, and I would like it when I click it, open another fragment. I tried several things already and nothing: / The last one was this FragmentManager...
asked by 27.05.2016 / 23:50
1
answer

Error converting to Json with Gson

Well, I'm having this error while doing the object conversion to json. I'm using gson. I tried to send the whole object and I had the same error, I changed and separated the object to try to find where the problem is, but without success. Gson...
asked by 26.05.2016 / 22:10
1
answer

Store values in an inverted order vector

The goal is to read 10 values of a given vector, and then create another vector that has the same values as the first vector, but in inverted order, for example, the first value of the 1st vector is the tenth of the 2nd vector, the second value...
asked by 26.05.2016 / 20:43
3
answers

Saving ID of a table with two Primary Keys with Hibernate

Hello, I'm having a problem saving data to a last table. Well, this table has two foreign keys and the same ones are primary keys: WhengoingtotheController,savethetable,Iusethefollowingcodes:itv.setId();itv.setIngresso(ing);itv.setVenda(ven)...
asked by 29.05.2016 / 23:37