sergio martinelli

Greenhorn
+ Follow
since Sep 21, 2008
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 sergio martinelli

hi,

I was using Apache OJB ORM, which sent a mapped entity only charged with the ID and a framework's method returned fully charged entity.

i.e. OJB with this two lines of code solve my problem:

QueryByCriteria query = new QueryByCriteria (entity);
Object result = broker.getObjectByQuery (query);

I want to do the same with Hibernate and I can not find how to send the single entity charged with the id and the framework resolve everything and return the object fully charged.

Somebody knows??

thanks.
Hi,

I can't get table name from a mapped class in this way using Hibernate3:

Session session = InitSessionFactory. getInstance( ).getCurrentSession();
BasicEntityProperty classMetadata = (BasicEntityPropert y)session. getClassMetadata (employee.class) ;
classMetadata. getTableName( );


with hibernate2 I did it with this three simple lines of code.

Now I can't find nothing simple like that, is really hard get the table name from a mapped pojo.
Looking in the SessionFactory or Configuration class find something but I don't find the way.

Plase some help!
thanks.
-------------------------------------
My english stinks... I know!

I suggest you use the API Bouncy Castle OpenPGP are easy to use and well documented.
13 years ago
That "garbage" was a mistake when was wrote the encrypted file.

..and the mixed up keypair work fine anyway.

thanks Greg!
13 years ago
Hi,

A simple question, if we are using a RSA keypair to sign/encoding, and the other side are using DH/DSS also for sign/encoding we'll have some problem to decrypt?

We are doing it and we could decrypt as well but in the final line there are some garbage characters, something like binary characters or extended ascii...

Somebody knows why is there that trash?

thanks.
13 years ago