Oscar Hansen

Greenhorn
+ Follow
since Jul 09, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Oscar Hansen



We can do something like that or use creteria to get the max from the table. I got the problem resolved.
13 years ago
I am trying to create a custom validator for variable 'amount' in my domain class, such that the new value should be greater than previous by 0.50.

For example, lets say the previous value was 1.0, next time the value should be atleast: [previous value + 0.50] or more.

Thanks in advance for the help
13 years ago
Have you tried using custom validators for a password field? I was running into a similar issue once and using custom validators did resolve my issue.
13 years ago
My apologies, I made mistake while copying the code snippet. Yes you were right about the belongsTo and hasMany, this part is clear to me now thanks for that. The only part that I am still trying to figure out is where to look to implement the requirements. Can I get some pointers or references??
13 years ago
I am a zygote groovy programmer, and would like to know how to implement the following in groovy:

1- - Updating a Listing should not update the seller's information.
2- - Updating a seller's information should not modify any properties of that seller's listings



In order to implement aforementioned requirements I looked into groovy docs and found out that belongsTo will serve my purpose. However, I am not sure if belongsTo makes sense in the Listing class because it enforces the "Composition" relationship with Customer. Am I on the right track??

Thanks, any help will be highly appreciated.





13 years ago
I am reading SCJA book by Cameron McKenzie and on page 166, I did not understand the answer to a question. Can someone explain me:

Sub classes:
- Should not be used as a method parameters when an ancestor class will suffice.

Thanks in advance!
13 years ago
Can someone please suggest me any good book for the Struts 2.x for beginners. I have looked and found out few i.e. Struts 2 in Action by Don Brown and Apache Struts 2 by Dave Newton. But I am not sure if these are the right starting point for someone with little or no knowledge of Struts 2.x. I would appreciate any help on this.

13 years ago
Is there anyone planning on selling the exam voucher? I am planning on taking this exam, so was just wondering if I can save some bucks!!!
15 years ago
I am confused too. There got to be some reason behind it. Either the question is not put in correctly or the answer to the question is misleading. Need some experienced input here .... Anybody???
[ August 06, 2008: Message edited by: Asif ]
15 years ago