Has anyone got Hibernate Tools - specifically the HQL queries - working on a basic Seam Gen project?
I've asked this question in the Hibernate Tools forum (http://forum.hibernate.org/viewtopic.php?p=2356963#2356963) but I think it is best addressed to a Seam audience.
Essentially, Hibernate tools picks up the Console Config from the project (using the hibernate-console.properties that Seam Gen helpfully generates). However when I try to perform a query it tells me that the Entity is not mapped. My understanding is that using the JPA connection it wouldn't require this.
Can anyone point me in the right direction?
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058646#4058646
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058646
"jignesh_it009" wrote : "meissa" wrote : you just have to copy the default directory and give it another name.
| | Assume you name it myInstance. To run it, you'll have to use
| |
| | run -c myInstance.
| |
| | hope that help.
|
|
| Thanks dear. Also I would really appreciate if you can explain me how can I run both the instance at a time.. because default instance runs on port no. 8080 .. so for any other instance to run at the same time, I guess I will have to configure it on new port no. Could you please help me how to configure port number ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058640#4058640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058640
I am not sure if this is the best way. It would probably be better to use the seam entity converter, but here goes:
| InitialContext ctx = new InitialContext();
| String jndiEntityManagerFactory = "factoryDefinedInComponentsXml";
| EntityManagerFactory factory = (EntityManagerFactory) ctx
| .lookup(jndiEntityManagerFactory);
| EntityManager entityManager = factory.createEntityManager();
|
Hope, it helps!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058639#4058639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058639