Questions tagged as 'java'

0
answers

How to get the attributes of another object with OrmLite in android?

I am working with OrmLite on android, I can obtain the attributes of my Debtor object with this code, but if I access the Debt object from Debtor, it returns null the attributes. On the other hand, if I access directly from the Debt object if th...
asked by 02.03.2018 / 16:48
1
answer

because it sends this error ids for this class must be manually assigned before calling save () when trying to save?

I have the following table that shows a list of people and when clicking on a row, sends me to another page <p:dataTable var="consultaPersona" style="max-width:3000px;max-height:770px;" value="#{NivelesPersonaComponent.listNivelesPers...
asked by 02.03.2018 / 16:51
2
answers

Something is wrong with my program

You see, I'm doing a Java program with Hibernate in Netbeans. For this, I have a class called Professor, which has this code: package hibernar; import java.io.Serializable; import javax.persistence.*; @Entity @Table(name="Profesor") public c...
asked by 24.02.2018 / 11:16
0
answers

Help create an ellipse with a button

I need the program to draw an ellipse when I press the Start button. That would be the basis for after a little game like the pacman or the little vibrator, but I got to this step and I got stuck, I really do not know what to do. The classes mak...
asked by 24.02.2018 / 03:29
2
answers

I need to Paint an array of objects in an option of a Select

I need that with the jquery library and the .append tool through a foreach loop the object name appears in an option of a select, I have an array of objects: [Object [id = 1, attribute2 = example], Object [id = 2, attribute2 = example2]] I ha...
asked by 24.02.2018 / 16:44
2
answers

What is the difference between using a global variable and a Singleton? Java

Very good, my dear colleagues, I wanted to ask you about the difference, advantages and disadvantages between using a global variable or the singleton pattern. Then I leave a bit of code for you to see what I mean. I understand that the gl...
asked by 28.02.2018 / 17:34
0
answers

Enter data in SublimeText3 console for Java

I'm working with Sublime Text 3 to compile java, however when I create classes that need data entry by keyboard, the sublime text console only lets write but when I press the ENTER key, nothing happens, it's as if the program will never read the...
asked by 27.02.2018 / 16:02
0
answers

Incorrect table definition; there can be only one auto column and it must be defined as a key

I was generating the tables for my dbDaca.sql database, it turns out that I have the following problem: Knowing that my PRIMARY KEY FOR ALL MY TABLES is IdColaborador, that's why in each table I put a references. You will wonder why I p...
asked by 27.02.2018 / 15:36
0
answers

sessionFactory.openSession () gives error

I have a program that manages a table called Seguro. The Safe class: package ejercicio01; import java.io.Serializable; import javax.persistence.*; import java.util.GregorianCalendar; @Entity @Table(name="Seguro") public class Seguro imple...
asked by 24.02.2018 / 19:51
1
answer

How do I return a list with a range of two dates with hql?

I have created an integer of type String for the query of dates of a demand List<Demand> findAllDemandsBydates(String starDate, String endDate) throws ParseException; here is where I implement my code and say it is a string and I g...
asked by 25.02.2018 / 01:17