Posts by dellasavia • 977 points
20 posts
-
0
votes1
answer37
viewsQ: What are the advantages of using Jenkins to run processes in the background?
I’m having contact with a web system where they use Jenkins to execute processes in the background, in this case, queries to generate reports. The user makes the request and the processing is done…
-
6
votes1
answer90
viewsQ: Using static factory methods instead of constructors
I’ve been doing some research on this subject after I read in Joshua Block’s book, Effective Java, Item 1, about the use of static factory methods rather than building builders. There in the text he…
-
1
votes1
answer101
viewsQ: Why is the Serializable interface empty in JDK source code?
I know what serialization is and what use it is. I also know when not to use it. I’ve read item 74 of the Java Effect. My question is, what is the purpose of an empty interface, in which there is…
-
3
votes2
answers497
viewsA: How to concatenate two Data?
DECLARE @DATA1 DATETIME, @DATA2 DATETIME; SET @DATA1 = getdate() SET @DATA2 = null SELECT CASE WHEN (@DATA1 IS NULL) THEN '' ELSE Convert(nvarchar(50),@DATA1 , 121) END +'|'+ CASE WHEN (@DATA2 is…
-
1
votes1
answer1605
viewsQ: Removing items from a Onetomany relation by default
I have an entity that has a list attribute of type Onetomany: @Entity public class Pai { private List<Filho> filhos; //demais atributos... @OneToMany(mappedBy = "pai", cascade =…
-
2
votes3
answers342
viewsQ: Where should I put a calculation method? In the entity itself or in the business class?
I have an architectural doubt, I believe. I need to create a method that receives a period of dates and an entity in which to execute a search in the period cited. In fact, to ask this question it…
-
3
votes2
answers768
viewsA: What does -Rf mean after rm?
-r recursive mode, i.e., removes the folder and subfolders and -f forcibly remove without asking the user This command must be used carefully, can damage the entire system.…
-
18
votes3
answers26529
viewsA: What is the difference between a class and an object?
Interesting that despite being a trivial question, when I was learning about object orientation I talked with several experienced programmers and nobody could explain to me, in a clear way, what is…
-
1
votes2
answers303
viewsA: Cache Problem - Writing database data to Java system
Apparently the changes are not being reflected in the database because of Hibernate’s internal cache. Take a look at item 6 of this article:…
-
4
votes1
answer1025
viewsQ: Convert PDF to DOC
It is possible to convert a PDF to a word document by keeping all formatting, alignments, fonts and tables in the converted document, using apache-poi or some other api?
-
6
votes2
answers123
viewsQ: How to separate libraries in an app suite?
I have a suite of web applications composed of several applications, each one specialized in a company area, such as property management, contract management, HR management, works management, among…
-
1
votes0
answers89
viewsQ: The Operation could not be performed because OLE DB Provider "MSDASQL" for Linked server "XYZ" was Unable to Begin a Distributed transaction
I’m trying to accomplish a update in a database on another server through a LINKED SERVER configured on my local server. Already tested and is working perfectly when using darlings in the SGBD. In…
-
4
votes2
answers220
viewsQ: Alternative to create a new method in a String object?
I have the following situation: I have a txt file of defined positions (type CSV, CNAB, etc) to process and extract values. For the purposes of understanding, follow the code I made and it’s working…
-
3
votes1
answer147
viewsQ: Why does the binary conversion of SQL Server not return a binary value?
Why when I use the following command in SQL Server 2005 select convert(varbinary(16),N'123') returns 0x310032003300 and not 1111011 that would be the binary value?…
-
5
votes4
answers1841
viewsQ: Does the order of the WHERE clauses interfere with performance?
I recently ran some tests on a database with a query using two Where AND clauses. I noticed that there was a significant difference using clause A before clause B and vice versa. Intuitively, it…
-
2
votes1
answer1864
viewsQ: Message "301 Moved Permanently" began to appear suddenly
I have two applications that worked perfectly, however, without changes in the code, no longer work. On one side, an application with a JSP making a call POST and passing two parameters Hidden:…
-
5
votes3
answers5197
viewsQ: Definition of EJB
Forgive me for the general subject, but I have been researching for some time in various places and I have found nothing that would explain satisfactorily what an EJB is and what it is for. I am…
-
2
votes1
answer257
viewsQ: Multiple projects using a single "properties" file
I have a product that is distributed in several independent MAVEN WEB projects that access a single MYSQL base. I decided to divide it into several projects so that each module stays on a different…
java-eeasked dellasavia 977 -
6
votes1
answer1338
viewsQ: How to get phone number via facebook API
I am implementing login via facebook on my site and it seems that it is no longer possible to get the phone number of the user, even with your authorization.…
-
11
votes8
answers2292
viewsQ: Why create an object using the superclass?
Given the following code: public class Musico { public void tocaInstrumento() { // faz algo } } . public class Baterista extends Musico { public void giraBaqueta() { // faz algo } } . public class…