Alberto Ivo

Ranch Hand
+ Follow
since Jul 06, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Alberto Ivo

Shinu,

Look this tutorial: http://www.mkyong.com/hibernate/hibernate-query-examples-hql/

This sentence you are trying to do is native sql. Hibernate has his own sentence but very similar.

But why don't you use the insert method? Just populate your object and it's done.
the resultList method returns a List of objects.
If you do a cast, it returns a list of whatever you want

It will return a list of users.. If you want just the id and date.. You could do a UserVO object (for example). somthing like this:

And put this constructor in your query.

I hope it helps.
ivo.
anyone could help on this doubt?
14 years ago
JSF
hmmmm.. Ok..

Thanks a lot Paul!
Could anyone please, send me a template for the choices.txt file ???

thanks a lot!
Hello,

In the interface provided by Sun, I have the methods:

void lock (int recNo)
unlock(int recNo)
isLocked(int recNo)

This is for lock just 1 record, nothing more.. but how can I lock the whole database so I can shutdown app without any problems?

thanks very much!!!
ok then.. I'll think about it...

to be honest, I don't want to do it.. I would do it only if it is a requirement... but it's not..

but then Roel said something important, I might loose some points in 'general considerations'...
hmmm.... thanks Roel.. I didn't think about this.. I don't want to loose points in 'general considerations'..

thanks everybody.. you help a lot...
Howdy,

I would like to know if I do not log will I fail?

Thanks.
Yes.. Ulf, Thanks very much!
15 years ago
hmm.. ok then..

but how can I extract the pdf File from the and copy it to a known directory. I already have the InputStream of the file:
15 years ago
Rob, thanks for the answer...

but this won't help me... See, I want to open an existing pdf file inside the JAR, not to create one temporary file... I think I didn't explain my problem properly.

I want to copy an existing PDF file inside a jar file to a known directory and then open this file.

thanks..
15 years ago
Hello friends,

I would like to know how can I open a PDF that is inside the jar file, programatically. My first idea was:

In the code above, I receive an InputStream but I dont know what to do with this, I would to open the PDF file or to copy the PDF file for a directory known by the user and then open with:


Thanks in advance!
15 years ago