Posts by Allan Almeida • 108 points
5 posts
-
0
votes1
answer50
viewsA: Is it possible to create a Java superclass for basic CRUD functions using spring framework?
So André, I believe the way to solution is the use of Generics. Perhaps, something more or less like this (The code below is a reference, a light or just an idea): public class Box<T> {…
-
0
votes1
answer91
viewsA: Java problem n + 1 query with Map
There are some critical points in this code snippet. I made a very simple but functional sample to test (If someone else wants to analyze, it’s easier). I believe that a good refactoring is the most…
javaanswered Allan Almeida 108 -
0
votes1
answer57
viewsA: "Uncompilable source code" error when trying to connect to database
It’s very likely that you’re doing something like: forName = setText(Double.toString("foo")); If that’s the case, maybe you’ll decide: forName.setText(Double.toString("foo")); But as Pedro Augusto…
javaanswered Allan Almeida 108 -
2
votes1
answer159
viewsA: Why do classes with underline ("_") in Java become "_1"?
JNI follows some rules for concatenating "Dynamic linkers". Then a class with "_" becomes "_1". See the link below for more details: Resolving Native Method Names…
-
4
votes3
answers227
viewsA: What is the pattern represented by this class called?
Will be a DAO? As already mentioned, the DAO standard is used to separate Apis or data access operations (low level) from business logic (high level). Simple as that! An approach to implement this…