Posts by Andersoney Rodrigues • 227 points
32 posts
-
0
votes0
answers31
viewsQ: Ring query using Mongoose
Good morning, I need to carry out a query by changing the data of the object in Mongoose but I have not obtained success in finding the internal methods that do this and both $Facet and subpipeline…
-
0
votes1
answer51
viewsQ: Custom validation function Html5
I wonder if there is any way to override the function that makes the validation of a field in Html5, I notice that the browser’s implement in an elegant way a floating alert, I wish to have a custom…
-
0
votes1
answer223
viewsQ: How can I get information using Lockable with chained Join?
I have 3 layers of entities, of which I only want the third object. but based on the information of the first 2. For example, I have manufactures that manufactures cars and each car has a kind of…
-
0
votes1
answer70
viewsA: Problem with using Service Worker(A Serviceworker passed a Promise to Fetchevent.respondWith() that resolved with non-Response value 'Undefined'.)
Sorry. I fixed the problem by adding the 127.0.0.1 url Stayed like this: self.addEventListener("fetch", function(e) { const url = new URL(e.request.url); if ( url.hostname === "https://meu.site.com"…
-
0
votes1
answer70
viewsQ: Problem with using Service Worker(A Serviceworker passed a Promise to Fetchevent.respondWith() that resolved with non-Response value 'Undefined'.)
The service worker that I will show below works well in google Chrome, but when I am using the mozila firefoz returns the error: Failed to load 'http://127.0.0.1:8000/#/'. A ServiceWorker passed a…
-
0
votes2
answers98
viewsQ: Reflect java caching, how to do?
If I can instantiate a new object with Reflection, how can I caching for the type it belongs to? newInstance() returns a type Object but I need the primary object, which I can get the guy by name.…
-
0
votes3
answers320
viewsA: Where to put the files?
It depends a lot on which files. A clear example is that properties files for example is in the Resource folder. On the other hand, the java files are placed in their package structure, and from…
-
1
votes0
answers83
viewsQ: Is there a restriction to consult using inheritance in Hibernate?
Good morning/afternoon/evening Gentlemen. The situation is as follows. I have a query that performs the registration of daughter entities aiming to divide the object. However at a future time the…
-
1
votes1
answer470
viewsQ: How to cascade relationship?
I have a class mapped with Hibernate, however, when saving an object is cascateado the whole object to the child table (what is expected). The problem is that equal objects are saved instead of just…
-
2
votes1
answer375
viewsQ: Two id in table Hibernate
Is it possible for two fields to be id in a Hibernate table? I have two ids that need to be single in even table. But I don’t know how to implement.
-
1
votes0
answers31
viewsQ: There is way for an entity to belong to a user in Hibernate
I am looking for a simplified way to link a bank entity to a specific user, who registered, in such a way that it does not need to set the field at the time of registration. Is there any simplified…
-
0
votes1
answer311
viewsA: Using Jparepository and pageable can I make a partial query?
Fortunately while I was studying the documentation more thoroughly I ended up bumping into the solution of the problem in a way that was satisfactory to me. In this case it is only returning the…
-
0
votes1
answer311
viewsQ: Using Jparepository and pageable can I make a partial query?
I have an object that is persisted with jparepository, I use paging but it returns all fields which is not necessary for the application. So there is some way to configure a @Query to just pick up…
-
1
votes2
answers102
viewsA: How to import mixins into single file Components?
You can simply remove as {}, wouldn’t that be enough? I think the component would work. It would import metodoDiv from './metodos/metodo_Div' ... mixins : [metodoDiv], ...…
-
0
votes0
answers84
viewsQ: Is there any way to set up spring MVC to receive an Object with subobject?
I have in my project a controller that receives data via jquery. But this data is converted into an object that contains subobject. that is: class Teste{ String a; String b; Test2 teste2; } class…
-
1
votes0
answers45
viewsQ: Can you handle the Submit form Event with jquery to change the values sent to the server?
I have a java server that receives an object including other objects inside the object. I wonder if you can change the Submit in such a way that you can change the structure allowing you to put a…
-
0
votes1
answer38
viewsA: How to declare routes that are cached and other routes that are not stored?
After several searches even though it was not really clear I believed that the service worker was storing the data and this data was always prioritized instead of the return of the server. In this…
-
5
votes1
answer114
viewsQ: Configuration of service worker
Can you configure the code below the service worker to ignore the cache if the request from the server is 200? My service worker is picking up routes that exist and are not curly and generating…
-
1
votes1
answer38
viewsQ: How to declare routes that are cached and other routes that are not stored?
Good morning. I am developing a SPA system whose part is available only when the user is online and another is available even offline. The offline part is configured in the service worker but a…
-
0
votes2
answers512
viewsQ: Modal Assync Vuejs
Tó trying to make a reusable modal vuejs passing an object for editing or registration but I am locked in the way to pass the object asynchronously, since the object I want to pass will be changed…
-
0
votes1
answer119
viewsQ: Pagination in relation to Laravel
How to make pagination in Laravel in hasMany() method for relations between models in Laravel?
-
1
votes1
answer1236
viewsQ: Can I use select in Relationship on the Windows?
I have a model that takes the data with a with in the Standard, to take correlated data, there is form of these correlated data come only some specific fields and not all the data of the table? I…
-
1
votes1
answer297
viewsQ: How to hide fields in queries using eloquent Join method
From a question, I was given a way to make queries with children objects using the Join of the eloquent, The query is below: $dados = Roda::join('veiculos', function($query) {…
-
-3
votes1
answer328
viewsQ: Consult children objects that satisfy condition in parent objects, Relationship with eloquent
I have in my project two tables that relate, but I would like to make a query Consult that brings all children entities that a field is equal to parent entity, being for all parent entities that…
-
0
votes2
answers254
viewsA: Problem when compiling c++ Singleton
I decided, the way the code looks is this. static Connection& getInstance(int numbRobot) { static Connection instance(numbRobot); // Guaranteed to be destroyed. // Instantiated on first use.…
-
0
votes2
answers254
viewsQ: Problem when compiling c++ Singleton
When I’m trying to compile a singleton I always get the following return message: g++ -g -Wall pkg-config --cflags stage -fPIC pkg-config --libs stage -c -Wall Connection.cpp cc Connection. o -o…
-
1
votes1
answer969
viewsQ: Get path where python file is called
I created a python file and made it available to access from every place on the system, however, for many applications accurate the path where the python file was called by the system, but I did not…
-
-1
votes1
answer753
viewsQ: Multiple requests with $.ajax, synchronously
I am making a system, and in it I need to send several data to the server, basically synchronize an array of objects on a server via json using javascript, until then there is no problem, however…
-
0
votes0
answers81
viewsQ: Laravel puts argument in source? Is there any way to take?
<pre>fonts/vendor/materialize-css/dist/roboto/Roboto-Medium.woff2?1561b424aaef2f704bbd89155b3ce514 65.4 kB [emitted]…
-
0
votes1
answer45
viewsQ: Static element with vuerouter
I have an application that uses Vue-router, but it also has the need to login, and with this login comes the change in the header, where will be login and register, or panel, but in specific cases.…
-
1
votes1
answer2894
viewsQ: Can you cache/retrieve information using javascript/jquery?
Motivation, having an offline application, it is possible to cache information and be sent as soon as the user accesses the page again? How long would this cache last if possible? and what…
-
3
votes1
answer2542
viewsQ: How to access Vue-Router dynamic route parameter
Using the Vue-router, I came across a problem, when I weigh a dynamic route, like { path: '/horario/:dia/:hora', component: Bar }, a problem happens, I can access the values of day and time on the…