Nachiket Patel

Ranch Hand
+ Follow
since Sep 16, 2007
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nachiket Patel

Dear Ahmed,

I never used any ORM framework, although I know ORM concepts.
And we use Spring for every possibility where it can be used. (Spring core, jdbc, mvc, remote etc)

I am planning to learn "JPA/Hibernate" and also "JPA/Hibernate with Spring"
So, does Spring Persistence with Hibernate book required or assumes hibernate knowledge ? or it also contains Basics of Hibernate and How to.. Hibernate?

Cheers,
10 years ago
In Action class [ActionSupport extended]
1. equipmentSpeed is object (with get & set method in Action Class), which has getDiscreteConstrains() method which returns List<DiscreteConstrain> object.
DiscreteConstrain has getPossibleValues() method which returns List<String>

2. There is one more object limitPossibleConstrains of class DiscreteConstrain in Action.

I want to iterate over equipmentSpeed.discreteConstrains and get possibleValues which should be selected [checkboxes] and parent set(items of checkbox) should be limitPossibleConstrains[i].possibleValues value


Please identify why following code is not working... [OR Suggest alternative solution..]
11 years ago
okay,
Let me simplify it,
1. I want to validate my approach with standard approach.
2. There are 50 web service most of these are having 50 to 150 parameters ( Like array[flat] not object[hierarchy])..

If you have to implement these web-services, what kind of web-services you will make?

Regards,

11 years ago
Greetings,
We have to consume one event, from SAP, which has 150 attributes (fields).
And we have about 50 different web service interfaces for consuming/producing.

Now what should be the approach for consuming/producing???

Should we pass array, map,object or method with 150 parameters???
[Please also consider that, we do not want to change interface a lot. ]

Another point,
We were discussing passing parameter as map....and almost everyone was agreed, [because 150 parameters are there, and change frequency will be high)
So one college suggested that then can also combine 50 interfaces and create only one interface with additional parameter describing type of web service.

Please suggest, what should be appropriate solution? or how you are doing it???

Regards,

Regards,
11 years ago
The problem is i have never wrote (extensive) JDBC code.. ..
Although i used Hibernate and JPA (a bit) but not JDBC and JDBC-DAOs...

Thanks anyway.. i think i need to spend considerable amount of time for JDBC and DAO...

Regards,

One thing to be aware of, "last update time" is not the best candidate to use to version data because (unlike a numeric version field) timestamps can clash. Its very rare but they are open to this issue, so you may still get the odd lost update.


Right, Sorry, lets keep version and read/right of versionId with synchronization, In Java, with every screen object......
For swing client, i have to right some code, but we can reuse almost all the code which we write for taking care of this issue...
,
Okay,

In the case of keeping it into database, we need to use create some kind of class (or utility library) where we can pass table name with some additional required information for identifying that record, which tells whether this data is updated (stale) or not..Because i don't want to right down same code for all DAO's.
Is there any sample code link or code you have???

But, is there any other approach??

Regards,

What do you thing the issue will be?


Result will be similar to what you told in reply to my first question."In the database? Doesn't this tie your data to you view?" . if i put versionId in each table (we got 215 tables), so now all table contains auxiliary information which is not about entity (or domain).

Consider, each screen is screen object with URL ,screen description and menu placement (which i already have), now which contains one more information last updated time,.. i think it will work... what do you say??

Regards,
Thanks paul and krish,
I tried to find out at few places, but not getting much information...
May be i am using wrong search keyword, i am searching for "Optimistic Concurrency Control"...

Is there any alternatives??? May be in global context, i can keep note of last screen update time, and open time???
Because, i am not convienced with maintaining a field (even though it is a standard) for all the tables...


Regards,
Dear krish,
Are you suggesting that i should add 1 column (non domain) to all the tables,???

I don't think this is standard solution..
I am thinking of using database locking using JDBC.. But not clear...

Regards,
Hello friends,
This question is about general web programming...
The problem is, when 2 users opens same webpage containing CRUD table of table X

Consider, User-1 at Time:t and User-2 at Time t+x
Now User-1 updates screen at Time t+x+y and User-2 updates same screen at Time t+x+y+z

So, User-1's update is overridden and User-1 does not know about it.
I want to invalidate User-2 update by showing User-2 screen: "you cannot update screen, as it is chaged by User-1 after you opened up the screen"

My question is: "Is there any standard way to tackle this problem??" (I am using Struts-Spring-Jdbc)

Regards,
Greetings Lukas,
I am no genius..
Java is what i do since last 2 years....

i don't know.. I don't have any idea, how to measure Easy or hard for Core-Java..
But questions were good...
For example, you cannot tell by looking at some question that whether it is testing your concurrency concepts, OO concepts or Collections...

Regards,
11 years ago
Hey Ankit,
I remember you.

Cool. Still you are hanging in SCJP forum..??
Helping out other ranch members , right??
Its Great thing to do [Helping others]...
Keep it up... I genuinely appreciate it.

Regards,
11 years ago
Hey guys...
THIS POST IS BIT STRANGE.. BUT WORTH READING..

I am very happy 2day...
(FINALLY) I cleared SCJP..

I got voucher from my friend (i think it was around OCT-08 which expires on 07-Aug-09)
Then i started my preparation and withing in few days our new big-bang project starts at my job ( My day job is also Java coding, & i love it) ,
and that's when my preparation stops...& never started in near future..

After few months, In June - 09 end , i thought of giving SCJP again, and finally re-opened my voucher on last sunday (05-July) ..
& I had a big QUESTION MARK on my face...about Expiry date: 07/08/09, Is it dd/mm/yy or mm/dd/yy???

After searching JavaRanch forum, i found it's mm/dd/yy so expiry date of the voucher was 08-JULY-09... (Only 1 day left )

& After 15 hours of preparation, i managed to get 88% score.. Its not what i wanted... But i am very happy..

I just want to make a note that.
--------------
Even if you are experienced java developer (as i am)..
Buddy, You need prepare for SCJP.. [RIGHT ???]
--------------
& I can prove..
For example
It does not provide compiler... . THERE ARE NO RED LINES UNDER CODE STATEMENTS..

----
& Another point, Dont be lazy.. Give 10 minutes per day.. You will definitely get very good score

Regards,
11 years ago
hello friends,
I got SCJP exam-voucher.

Have some questions in my mind...
Please provide your views..

Should i appear for SCJP right now , or wait for Oracle-Sun merger???

After Oracle-Sun merger....
Will my exam-voucher will be valid ??
Will it make any difference in value ??

Regards,