368 reputation
312
bio website dicasdotnet.blogspot.com
location
age
visits member for 4 years, 1 month
seen 2 days ago

2d
comment Is it better to use strings or int to reference enums outside the java part of the system?
Yes, we went down this path, but we are using hibernate and we had to add some extra code to be able to parse the value to/from the database and it seemed kind of strange, so we decided to use the .STRING relationship and go with the enum name.
Dec
16
accepted Is it better to use strings or int to reference enums outside the java part of the system?
Dec
16
comment Is it better to use strings or int to reference enums outside the java part of the system?
Hm, seems interesting :) We will try this approach here and let's see what happens :) Thanks for your reply!
Dec
16
comment Is it better to use strings or int to reference enums outside the java part of the system?
I've edited the question and I hope it is clearer now: by "reference to an enum" I mean referencing the value when exchanging data from JavaScript to the Server or the other way around or storing a value in the database
Dec
16
revised Is it better to use strings or int to reference enums outside the java part of the system?
added 243 characters in body
Dec
16
asked Is it better to use strings or int to reference enums outside the java part of the system?
Sep
5
accepted Does Play framework approach necessarily leads to confuse code?
Sep
5
comment Does Play framework approach necessarily leads to confuse code?
Interesting point. I have a very limited experience with rails, but I really liked the language. The similarity to rails caught my attention in Play framework. I am starting the research now. I will make some prototypes to see it in action, thanks :)
Sep
5
comment How to use ViewModels in a layered architecture?
I feel relieved that it is normal. I like your separations ideas, I will propose to our team, thanks :D
Sep
5
accepted How to use ViewModels in a layered architecture?
Sep
3
comment Does Play framework approach necessarily leads to confuse code?
Yes, your points are valid. I just don't want to spend some time coding things and get with a confusing code that is hard to maintiain after some time (and then wasting more time getting around my code that implementing new things)
Sep
3
comment Does Play framework approach necessarily leads to confuse code?
I will take a look on this link, thanks :)
Sep
3
asked Does Play framework approach necessarily leads to confuse code?
Aug
25
asked How to use ViewModels in a layered architecture?
Jul
5
awarded  Nice Answer
Apr
16
comment How to make my code decide which class to instantiate based on a parameter?
Yes, I used string in my example for sake of simplicity, but the idea is to use an ENUM. Java is OK, the important is the concept, not the implementation. Thanks a lot :)
Apr
16
accepted How to make my code decide which class to instantiate based on a parameter?
Apr
15
revised How to make my code decide which class to instantiate based on a parameter?
added 279 characters in body
Apr
15
comment How to make my code decide which class to instantiate based on a parameter?
Sure, I have queries that are going to be called against a database. I want to have the same flow for the queries that do not have any business logic applied to it (ex: get all users, get all students, and so on)
Apr
15
asked How to make my code decide which class to instantiate based on a parameter?