Sebastian Hennebrueder

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

Recent posts by Sebastian Hennebrueder

Hello,
what exactly do you want to get from the JNDI: The transaction in JTA environment, the Hibernate Session, do you want to use Hibernate as EJB 3 (injection) or the JBoss Har archive?

Best Regards

Sebastian
This is a Struts problem. Your web.xml might be badly configured.
Have a look in the demo applications coming with Struts.
Best Regards

Sebastian
18 years ago
You may try mapping it as list.

Best Regards

Sebastian
catch the Runtimeexception in your Struts action and react
or catch it in your business layer and give something else Exception/return value to your struts action.

Best Regards

Sebastian
Search for fetchSize or batch fetching in the Hibernate Reference

Best Regards

Sebastian
You might have a look in the Hibernate reference. It is explained there somewhere.

Best Regards

Sebastian
Hello,
the following did work on my system. You might add your columns step by step.




Hello Mark,

Join element to specify a query how to get the data.

But still a primay key will be needed.

Regards Sebastian
Hello,
I just saw something in your mapping.
In your mapping you are using uppercase names. They should be lowercase.

Best Regards

Sebastian
Read about join in the Hibernate Reference.

Best Regards

Sebastian
When you want to assign an id you must select id generator="assigned".

Please read the Hibernate Reference.

Best Regards

Sebastian
Hello,
I am not a great fan of OpenSessionInView pattern.

I prefer to open close sessions in my business logic.

For your session.merge problem you will have to save the children you added to your entry either explicitly or you must specify cascade="all" in your parent.

Regards Sebastian
composite-id replaces id
but I would recommend to use an generic primary key instead of a composite id beeing composed of so many columns. Do not forget that each entity having a relation to your mapping must have each column in the mapping configuration.

You can read more about generators for primary keys in the Hibernate Reference.

Regards Sebastian
Hello Liza,
sorry but I did not understand as well. You speak about two tables and in your text you have 1+1+ a referencing table.
May be you should detail your question like:
table a (
id int,
someText varchar(255),
primary key(id)
)
table b(
id int,
foreign_key_to_a int,
...

You may have a look in the Hibernate reference as well. There are quite some examples.

Best Regards Sebastian
Hello Mark,

I have seen this one but I do not remember what we did. I am not a great fan of XDoclet even I have to use it for EJB 2. I prefer xml in java 1.4 and annotations in java 1.5 alias 5

Regards
Sebastian