Questions tagged as 'java'

0
answers

Spring configuration error

Someone could help me with this error:    Invalid NamespaceHandler class   [org.springframework.data.jpa.repository.config.JpaRepositoryNameSpaceHandler]   for namespace [ link :   problem with handler class file or dependent class; nested ex...
asked by 20.07.2018 / 08:19
1
answer

What code do I use to create a validation class in AndroidStudio?

I'm trying to create a class to check if the 2 EditText fields are filled, called Validacao . I wanted to call type: if (Validacao(TextoA, TextoB) == true) { executa código; I'm not sure how to code the class Validacao...
asked by 20.07.2018 / 01:35
1
answer

Error performing load command: org.hibernate.ObjectNotFoundException: No row with given identifier exists

Good afternoon! When loading a list of the Warehouse entity, jsf has the following error: org.hibernate.event.internal.DefaultLoadEventListener doOnLoad INFO: HHH000327: Error performing load command : org.hibernate.ObjectNotFoundException:...
asked by 19.07.2018 / 18:54
0
answers

How to get the name of a section that contains a String

The code is to get all the sections in the YML file, until it is working, but I do not know how to get the section containing the name "So-and-so", for example: Grupos: Usuário: pessoas: - Fulano Dono: pessoas: Code to get all se...
asked by 19.07.2018 / 17:43
0
answers

Spring + JPA, transient field visible in View and not persistent?

Good evening guys, I have a filter that I do manually with @query () that in it I do a total calculating join of a sale ie SUM(valor * quantidade) as total I'm not sure what to do. what happens is this, this total "temporary" field that ref...
asked by 13.08.2018 / 23:46
0
answers

Error calling non-static function from a static context

I created a class only to call 2 methods that can not be static. However calling the method of this object returns the error that I can not interpret. Code: public static Handler handler = new Handler() { @Override public void ha...
asked by 11.08.2018 / 03:17
0
answers

OneToMany Relationship to Class with Composite PrimaryKey in Hibernate

I have the following relationship IntheScaleDefinitionentity,IhaveacompositeprimarykeyfaultconsistingofidEscaleDetailsandidTurmaIamhavingdoubtstodothereversemappingbetweenScaleDetailsandScaleDefinitionusinghibernatesinceIhavean@Embeddableclassa...
asked by 17.08.2018 / 15:10
0
answers

Alternative to facade [closed]

I would like to know if you have some design pattern or some alternative approach to the pattern facade. I found his approach interesting in creating a "facade" for a given "subsystem" but the class that should be simplified became huge and s...
asked by 16.08.2018 / 23:47
1
answer

How do I restrict the display of some folders in the gallery? android

I know to list all the photos in the gallery but I do not need the Download folder to appear in the listing. I know I can filter but I can not get it to work. I do not want the parameter in the query to collate so that the download folder is...
asked by 18.07.2018 / 14:40
0
answers

No qualifying bean of type [br.com.spring.JPA.Service.PostService] found for dependency

Can anyone help me with this error? No qualifying bean of type [br.com.spring.JPA.Service.PostService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org...
asked by 19.07.2018 / 02:21