Questions tagged as 'java'

0
answers

Hibernate Query with setParameters

Hibernate is ignoring my data from a Map when it is null. If I hedge with setParameter("nome",valor) and the value is null it works, does anyone know how to solve it? Here is the code: public List selectList(String sp, Map par...
asked by 09.05.2018 / 20:34
0
answers

Knowing the length of an MP3 song with native java classes?

Is there any way to know unique attributes of an mp3 file with native Java classes? I just need the duration of the song in the case.     
asked by 01.05.2018 / 05:42
1
answer

How to know which is the last item selected from a listView?

Hello, I have a ListView using simple_list_item_multiple_choice , filled with ArrayString of all Brazilian states. I need to fill in the following SQL command with all the states selected by the user through the ufSelected...
asked by 18.05.2018 / 20:40
1
answer

Action p: commandButton does not call Method on ManagedBean

I'm trying to call a method in my ManagedBean, but the form is not submitted. Detail. I have a dialog that inside it I have some includes of other xhtml files, it follows like this until the moment This is my dialog <h:form id="modalMeca...
asked by 24.04.2018 / 16:08
1
answer

Relationship of one column to several

I have an entity class of Medical name, in which it has an IDMedical column. It relates to the Attendance entity class, which in turn has a MedicalID column, which would be a foreign key of that first. There is also in this table, Attendance,...
asked by 18.05.2018 / 18:32
1
answer

JPQL Not recognizing the parameter

I need to perform a query using JPQL or Spring-date keyword method. The problem is that the parameter entered in the query is being ignored, I still can not identify the cause of it. As the findByDescricão method is ignoring the parameter (de...
asked by 24.04.2018 / 10:35
0
answers

How to use spring security isEnabled

I was wondering if I'm using the isEnabled method of spring security correctly. For in my system, every user has a list of profiles. If the admin removes all their profiles and the user attempts to log in with that account without a profile an e...
asked by 24.04.2018 / 16:16
2
answers

Understand the use of generics in an abstract class DAO Hibernate

Hello, I'm starting to develop a web application with spring + hibernate framework, I started with an example that contained the following class: import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.SessionFacto...
asked by 24.04.2018 / 22:10
0
answers

Accentuation Problem

Friends, I have a problem, all the accents you have in the program I made using tomcat is with "?" as an example: Through, information, indexes. in pom I've set up: <properties> <springframework.version>4.0.6.RELEASE</spring...
asked by 24.04.2018 / 17:21
1
answer

Android - Is it possible to play videos in a WebView?

I'm developing a browser for android with java. It works entirely through WebViews. But the app is not able to play videos via stream ... I wonder if it's possible to get it done. Thank you. WebView in xml: <WebView android:layout_height...
asked by 29.04.2018 / 16:38