marcellorvalle

0

votes
0

answer
4

views

Saving a entity with multiple lazy-associations

I have a scenario where I need to save an entity with multiple associations but I don't want to retrieve these associations if not needed. I will try to give a simple example: Entites: public class Foo { private Long idFoo; private String defaultMessage; /* Getters and Setters Ommited */ } public...
marcellorvalle
2

votes
0

answer
726

views

Resizing Oracle Datafiles

I have an Tablespace with 3 datafiles (autoextend enabled). Actually Datafile_1 and Datafile_2 are 32GB in size and Datafile_3 size is 10GB. I Dropped one huge table and Datafile_2 occupation dropped to 4GB. Using some queries**[1]** over the dba_extents view I could see the HWM was still at 32GB. I...
marcellorvalle
3

votes
2

answer
2.8k

views

Generate the same MD5 using javascript and PHP

I am trying to build an application that needs to compare the MD5 hash of any file. Due to specific issues, before the upload, the MD5 must be generated client side, and after the upload the application needs to check it server side. My first approach was to use, at the client side, the JavaScript...
marcellorvalle
3

votes
3

answer
738

views

Regex to match a pattern only if its length is bigger than a value

I have 2 strings and want to know if string 2 have a subset of the characters of string 1 on the same order this subset has a minimun size determined by me. For example: string 1 = stackoverflow minimun size = 5 string 2a = stack (MATCH) string 2b = stac (DO NOT MATCH) string 2c = staov (MATCH) s...
marcellorvalle
4

votes
3

answer
183

views

Java generic type resolution

I have started to work with Java recently and still got confused when dealing with generic types. The following is a simplified scenario where I am having some problems. I have a class wich holds a Map using a Class type as Key and an Collection of objects of that class: public class GenericListInsi...
marcellorvalle
7

votes
2

answer
382

views

Java and generic type boundaries [duplicate]

This question already has an answer here: Java map with values limited by key's type parameter 5 answers Some background I am developing a small DI Container based on Lambda expressions. I have the interface representing the lambda: @FunctionalInterface public interface LambdaOp { T resolve(); } A...
marcellorvalle