[Persistence, JBoss/CMP, Hibernate, Database] - join table class in hibernate
by hpacheco
Hi all,
First of all, I don't kow if I am posting this question in the right forum, since the "old" hibernate forums (forum.hibernate.org) now redirect to the JBoss page and could find no trace of them.
I have two tables in my database schema
clients: clientid*, name
products: productid*, name
I want Hibernate to map it these to 3 POJOs:
class Client { int id, Name name}
class Product {int id, Name name}
class Name { String name }
Mapping the first two is simple, but is there a way to tell Hibernate that Name instances correspond to a join of the names from the two tables?
What I would like is to be able to query all the Name instances in the database (and if removed one name, remove its entrances in both tables) without an explicit query.
Thanks in advance,
hugo
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226130#4226130
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226130
17 years, 2 months
[Remoting] - Re: org.jboss.remoting.marshal.InvalidMarshallingResource: C
by ron.sigal@jboss.com
"peter_pinnau" wrote :
| How can I repack the jbossall-client.jar so that the patched jboss-remoting.jar is used.
|
Probably the easiest thing to do is just put the new jboss-remoting.jar in front of jbossall-client.jar in the classpath. Or, you could unpack jbossall-client.jar, delete org/jboss/remoting, unpack jboss-remoting.jar in the same directory, and then pack it up again.
"peter_pinnau" wrote :
| When will a JBoss 4.2.4 be released which fixes that issue?
|
I assume you're talking about the community Application Server and not the Enterprise Application Platform (EAP). EAP 4.2/4.3 (based on AS 4.2) will be around for some time, since it's intended to provide long term stability, but I doubt (without knowing for sure) whether there will ever be a 4.2.4 AS. All the energy is going into 5.x these days.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226122#4226122
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226122
17 years, 2 months