Posts by Felipe Junges • 523 points
32 posts
-
0
votes2
answers478
viewsA: Is using Jquery on a PHP page possible?
Create a function outside of PHP, along with your php, in this template: <body> ... conteudos php, html e etc <script> function exibeMensagemErro() { $('.senha_incorreta').css(…
-
0
votes0
answers223
viewsQ: java.lang.Illegalargumentexception: org.hibernate.hql.internal.Ast.Querysyntaxexception: Unexpected AST Node: query
I’m having to make a SELECT in JPA that contains an ORDER BY by selecting from another table. Small representation of tables: When I did by SQL it was normal, but when turning into JPA, it did not…
-
1
votes0
answers97
viewsQ: DAO not injecting with @EJB Annotation
I’m making a requisition for "/counter/{id}" by Postman and when the code arrives in notifiedAAO.counter(id), I get the error message saying that notifiedDAO is null. PS: I’m using Wildfly 11 with…
-
1
votes1
answer1203
viewsA: WELD-001408: Unsatisfied dependencies for type Servicelocator with Qualifiers @Default
It worked for me by removing: <dependency> <groupId>org.glassfish.jersey.ext</groupId> <artifactId>jersey-mvc-jsp</artifactId> </dependency> And I put the tag…
-
1
votes1
answer1203
viewsQ: WELD-001408: Unsatisfied dependencies for type Servicelocator with Qualifiers @Default
I’ve been trying for a while to implement a JAX-RS (Jersey) server with Datasource, already migrated from Tomcat to Glassfish, and now from Glassfish to Wildfly 11, but I’m having the error below…
-
0
votes1
answer210
viewsQ: Error with Hibernate query
I am trying to perform the following Query on Hibernate: return this.entityManager .createQuery("SELECT u FROM UploadArquivoCondominio u WHERE " + " u.condominio = :ucondominio ) " + "AND u.dtinicio…
-
0
votes1
answer66
viewsA: Doubts About Java WS Slowness and Remove warn
How to fix WARN error: 1) I created a lo4j.properties file in src/main/Resources 2) I have added the following code: #Log to Console as STDOUT log4j.appender.stdout=org.apache.log4j.ConsoleAppender…
-
1
votes1
answer311
viewsQ: Reason for delay of process and configuration of Hibernate (persistence)
I’m setting up a WS server with Java, and I’m seeing some problems, like login via POSTMAN, is taking between 6000 to 7500 ms to respond, and what it really does, is around 50 ms. After being able…
-
1
votes1
answer883
viewsA: Check if foreign key is being used
As I said, the database itself (in the example, Mysql) makes this deletion impossible. Follow an example print: The error that is displayed: 16:39:29 DELETE FROM tbprofissao WHERE id = 3 Error Code:…
-
2
votes1
answer103
viewsA: Code only works when you restart your PC
Already happened to me something similar, I was developing a web page for my TCC all in Javascript, when publishing for test, I realized that there was an error, I corrected the same and updated the…
-
0
votes1
answer66
viewsQ: Doubts About Java WS Slowness and Remove warn
1) I have a question about the slowness of a REST web service that I am mounting. In client communication, the server response takes a few seconds. What I’ve already done: -All processes the…
-
0
votes0
answers89
viewsQ: View HTTP Request Time and Java Process in Eclipse
I would like to calculate and visualize the time and resources spent when the JAVA server receives a request, from the moment it receives to the moment in response.
-
1
votes2
answers93
viewsQ: Is there any way to remove all sysout from a Project?
I’m riding a Webservice and there’s some sysout test to print the variables, and as there are in several different files, I would like to know if there is any way to remove all the sysout of the…
-
2
votes2
answers31
viewsA: Error in searching the register in the comic
You are performing only one reading, in case you are replacing: $query = "SELECT * FROM teste WHERE email = '$var2'"; for $query = "SELECT * FROM teste WHERE cpf = '$var1'"; Do it this way: $query =…
-
0
votes2
answers386
viewsA: Call function by passing field
I do it this way: <select id="cbotipo" ClientIDMode="static" runat="server"> <option value="1">Pessoa Jurídica</option> <option value="2">Pessoa Física</option>…
-
0
votes3
answers2917
viewsA: How to call javascript function in Asp.net?
Try this: ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "keypressed(obj, e)", "keypressed(obj, e)", True) Edited: Seeing the comments, and I realized that you want to assemble a…
-
2
votes1
answer80
viewsA: Mobile Framework for Development in Cordova
Have you seen the IONIC ? Its development is in Angular 2 and 4 and compiled with Cordova, so it has its own HTML tags. If you just want a design framework, you can try looking at Materializecss.…
-
0
votes0
answers177
viewsQ: Select only a few columns from Hibernate-mapped objects
How can I select only a few fields of a related object ? How it works (taking everything): List<Participante> participantes = this.entityManager.createQuery("SELECT a " + " FROM Participante a…
-
0
votes1
answer82
viewsQ: Hibernate/SQL Average of a table with multiple relationships
I have the following tables TABLE 1 id value table 2 TABELA2 id Tabela3 TABELA3 id And with this, I would like to average TABLE 1, with WHERE in the parameters TABLE 3 with Hibernate/persistence,…
-
1
votes1
answer73
viewsA: Tables not being generated - Hibernate
In the generated tables, the variable used is Bigint, to convert Hibernate to SQL, the same converted to Decimal (10,2), I tried to create SQL as the generated one, and did not create the tables, so…
-
0
votes1
answer140
viewsQ: Error generating APK - app:transformClassesWithDexForDebug
I am trying to turn my application into APK, for TCC delivery and am having the following error: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.…
-
1
votes2
answers1129
viewsA: Centralize objects within the div
Using of boostrap 4: <div class="row justify-content-center"> <div class="col-md-6 text-center"> --- conteudo ----- </div> </div>…
-
3
votes1
answer250
viewsQ: Partial update of object / Do not update null values with JPA
I’m using JPA for a webservice, and I’m using the Merge to update, but it updates all values of my object, there is some way to perform a partial update of it ? Example, only change values that are…
-
1
votes1
answer73
viewsQ: Tables not being generated - Hibernate
I have 2 tables of my software that are not being generated correctly. SQL is generated, but when checking in Mysql, not the encounters. If I change the tag to: <property…
-
15
votes1
answer27253
viewsQ: Differences @Onetomany, @Manytomany, @Manytoone, @Onetoone
I wanted to build a database with Java Hibernate as below: Doubts: What’s the difference between @OneToMany, @ManyToMany, @ManyToOne, @OneToOne? And what would your statement look like in Java?…
-
0
votes1
answer255
viewsQ: Error using Hibernate to generate tables and doubts about
I am creating a webservice using Maven to manage the dependencies of my project. At the moment, I’m looking to create a database based on my models. I have four doubts and a problem in my attempt:…
-
1
votes1
answer88
viewsQ: Javax, @Defaultvalues, @Prepersistent, @Preupdate
I’m learning to play with Javax, and persistence of Java and I want to know if there’s any way to leave a default value for the database. Example in SQL: variacao TIMESTAMP DEFAULT CURRENT_TIMESTAMP…
-
1
votes1
answer116
viewsQ: Is it possible to use MVC with VB and ASP?
Is there any framework or way to work with MVC in ASP + VB? Correct me if I’m wrong, but I’m thinking about working that way: View -> .ASP Controller -> .ASP.VB MODELO/DAO -> .VB…
-
0
votes1
answer68
viewsQ: Running Java Webservice out of eclipse with Maven
Hello, I have a webservice project that runs normally on my computer, using the eclipse and Tomcat. And now I want to transport this project to a server and have it run only with Tomcat. There also…
-
0
votes1
answer1280
viewsQ: Label and input placement in an html form
Hello, I’m studying HTML5 and CSS3 and I’m trying to stylize by positioning inputs/checkbox/combobox and their respective Abels. Suppose I have the following code: <form> <label…
-
0
votes1
answer52
viewsQ: An Activity for each action or several actions in the same Activity?
I’m having doubts about how to use the Android Activity. Use as a controller, going through everything that will be managed from model, or make one for each "screen"? Example: I have the home screen…
androidasked Felipe Junges 523 -
1
votes1
answer64
viewsQ: Rails - Undefined Method 'client' for 'Book'
Hello, I’m working with ruby on Rails and I’m having the error: 'Undefined method', as in the image The employee is working, and if I put only the book.cliente_id, it works. Follow the codes below:…