Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Corneliu Bogdan

Greenhorn
+ Follow
since Sep 19, 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 Corneliu Bogdan

Hello,

Thank you very much for your idea. I've change the "one-to-one" to

<many-to-one class="org.crb.entities.SimplePrice" name="contractPrice" unique="true" lazy="false"/>

It works like a charm.

All the best,
Hello,

I have problems configuring some relationships. I have class SimplePrice and class RolledPrice, the second inherits the first.
The configuration file is like this:



What happens is that I have a new instance "a" of type "RolledPrice" and I assign to the "contractPrice" property a "SimplePrice" instance (that's already persisted, with the id 100 for example), after that I call "hibernateTemplate.persist(a)". Later when I retrieve the "RolledPrice" instance added before (for example now it has id 1001), it has a reference to itself in the property "contractPrice", instead of a "SimplePrice" instance with the id 100.

This happens during a JUnit test, using Spring and in-memory HSQLDB.

Could someone tell me what am I doing wrong?

Thank you,
Hello,

I'm trying to do an Eclipse RCP application where I have two plugins and a RPC application. The first plugin is a plugin from existing JAR archives and I've added the JARs needed for any client using GlassFish here. The second plugin, that depends on the first, has a service locator in it used to retrieve remote EJBs from the GlassFish server. The context seems to be generated ok but no matter where I put my remote interfaces (the same plugin directly, the same plugin as JAR, another plugin from existing JAR archives, etc...) I get this error "javax.naming.NamingException: ejb ref resolution error for remote business interface... Root exception is java.lang.ClassNotFoundException:...". I think that this is related to the Eclipse framework.. the way loading the classes probably...

So I've ran out of ideas. Could someone help me on this? Where should I put the EJB remote interfaces classes to get this to work ?

Thank you,