safraz hanas

+ Follow
since Feb 21, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by safraz hanas

Thanks for your assistance.

I'll give a try.

10 years ago

I have to develop a web based application which reads an XML Schema & generate appropriate UI components. After user manipulation, relevant xml file should be generated.

Which Framwork or API can make my life ease.

Your assistance kindly appreciated.

Note :
I have check XUI ( Framework. I could find that supports XML not XML Schema.

10 years ago
Hi Guys,

I'm assigned a task to create a dynamic UI using XML Schema. I have chosen the JAXB to marshal the contents to java. I wanna know how to proceed forward.

Is there any API, which can use to create the dynamic UI based on the generated classes?

I would be grateful, If you can assist me.

10 years ago
Thanks guys,

I know that i have to implement compare(Obj, Obj). However i don't have any clue how should i write it, i mean the logic. Can anyone suggest me.
12 years ago
Thanks for the early reply.

I have used the following code.

It gave me something like


Again, i have a problem, how can i get File names starting "A" first & "a" after. Arrays.sort() doesn't support for these kind of scenarios.

Yours assistance is highly appreciated. eagerly waiting for a reply

Thank you in advance
12 years ago

I need to get list of file names in a directory, which i'm doing by following code

I have two problems
1. How can i sort the file names in ascending order?
2. How can i sort the file names by creation date (olderst file first)
12 years ago
Hi Geeks,

Im developing an application using core java MySQL 5.0 & Hibernate 3.2.1. I'm expecting a solution for the following problem

I'm having 2 tables,
1. job, which is master table
2. jobSequence which is detail table

relationship is one-2-many (job to jobSequence)

table data :

| job_id | sequence |
| 1 | 152 |
| 2 | 256 |
| 3 | 306 |


| 1 | 1 |
| 2 | 1 |
| 3 | 2 |
| 4 | 2 |

when i use the following query,

List jobs =
ses.createQuery(" from ImJobs as job " +
"left join fetch job.imJobSequence as imJobSequence where job.jobId = imJobSequence.imJobs.jobId ").list();

I get

| 1 | 1 |
| 1 | 2 |
| 2 | 3 |
| 2 | 4 |

My Problem

How can i get the corresponding job sequences from job?

Your assistance is highly appreciated...

Is this infomation sufficient?

Thanks in advance.

I'm developing a simple Point of Sale application. In the invoice I need to show the amount in words. I don't have any clues how to do it.
Is there any ready-made application, which i can use! or else any tips?

Thanks in Advanced
12 years ago
Thanks for the early reply

Ok, I understand it. Do you have any suggetion for this. I mean any other alternatives
12 years ago
Hi to all, I'm having a buring problem

Following code snippet i got from here, I use to explain my problem.

1. Date d = new Date();
2. System.out.println(d);
3. Calendar cal = new GregorianCalendar();
4. cal.setTime(d);
5. cal.roll(Calendar.HOUR_OF_DAY, -1); // problem is here
6. d = cal.getTime();
7. System.out.println(d);

lets say, in line no 2 printed as "Wed Feb 21 19:23:58 IST 2007"
& line 6 printed "Wed Feb 21 18:26:15 IST 2007"
if i pass 20 instead of 1 in line no 5, I'm getting "Wed Feb 21 23:27:16 IST 2007"

This is not what i need, i should get something like "Wed Feb 20 ......"

How can i solve this???

Guys, I need your help!!!
Thanks in advance
12 years ago