[jboss-user] [Performance Tuning] - Re: HQL/ JPA-QL Query Tuning: How to enforce the join order

2007-05-19 Thread hoeft
Thank you for your answer! Do you know if it is possible to map pojo's to view's (especially with hibernate)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4046980#4046980 Reply to the post :

[jboss-user] [Performance Tuning] - HQL/ JPA-QL Query Tuning: How to enforce the join order

2007-05-03 Thread hoeft
= em.createNativeQuery(SQL Query which enforces the join order); | Operation op = (Operation)em.getSingleResult(); | Thanks Hoeft View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042796#4042796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode

[jboss-user] [EJB 3.0] - HQL/ JPA-QL Query Tuning: How to enforce the join order

2007-05-03 Thread hoeft
= em.createNativeQuery(SQL Query which enforces the join order); | Operation op = (Operation)em.getSingleResult(); | Thanks Hoeft View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042797#4042797 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode

[jboss-user] [EJB 3.0] - Re: HQL/ JPA-QL Query Tuning: How to enforce the join order

2007-05-03 Thread hoeft
| and T1.Key2_ID + 0 * T3.Key3_ID =T2.Key2_ID; | So it is possible in SQL to enforce the join order I want. Hoeft View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4042924#4042924 Reply to the post : http://www.jboss.com/index.html?module=bbop

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Error after executing HQL-Statement: Entity is not mappe

2007-01-26 Thread hoeft
map the class? I don't have any xml files which describes how the classes are mapped. The classes are looking like this: @Entity @Table(name = MyTable) public class MyClass { ... } I have thought that this is enough for the hibernate tools to figure out, how the classes are mapped. Is this

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Error after executing HQL-Statement: Entity is not mappe

2007-01-26 Thread hoeft
Ok, thank you. I'll try the newest release then. But for the case that it doesn't work: Is it possible to create the mappings in the hibernate.cfg.xml file automatically? It would be really labour-intensive to create the mappings for my 50 entities by hand View the original post :

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Error after executing HQL-Statement: Entity is not mappe

2007-01-26 Thread hoeft
Thank your very very much!!! It works :- View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4006859#4006859 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006859 ___

[jboss-user] [EJB 3.0] - Re: UserTransactions and merge

2006-11-17 Thread hoeft
I haven't tried it yet but here's my suggestion. This code should work: | UserTransaction ut = sessionContext.getUserTransaction(); | ut.begin(); | MyEntity a = em.find(MyEntity.class, Long.valueOf(1)); // -- a is bound. Not initialized lazy fields can be accessed | a.setName(FOO2); |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Exception during persisting entities

2006-11-16 Thread hoeft
Hi! I use JBOSS 4.0.5GA and get always following exception: | 11:06:47,445 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null | 11:06:47,445 ERROR [JDBCExceptionReporter] failed batch | 11:06:47,445 ERROR [AbstractFlushingEventListener] Could not synchronize database state with

[jboss-user] [EJB 3.0] - Exception during persisting enities

2006-11-16 Thread hoeft
Hi! I use JBOSS 4.0.5GA and get always following exception: | 11:06:47,445 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null | 11:06:47,445 ERROR [JDBCExceptionReporter] failed batch | 11:06:47,445 ERROR [AbstractFlushingEventListener] Could not synchronize database state with

[jboss-user] [EJB 3.0] - @GeneratedValue in mappedSuperclass Problem

2006-11-16 Thread hoeft
Hi! Many of my entities have an id of type long. So I put the code (getters, setters ...) into an superclass. After I did it, the id wasn't initialized by hibernate any more, if I persisted an entity. Thats very strange. Here is the code: | public class GenerateValueTestcase extends

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - @GeneratedValue in mappedSuperclass problem

2006-11-16 Thread hoeft
Hi! Many of my entities have an id of type long. So I put the code (getters, setters ...) into an superclass. After I did it, the id wasn't initialized by hibernate any more, if I persisted an entity. Thats very strange. Here is the code: | public class GenerateValueTestcase extends

[jboss-user] [EJB 3.0] - Re: UserTransactions and merge

2006-11-16 Thread hoeft
You mixed the lines. You must write: |(...) |a.setName(F002); |em.merge(a); |(...) | If you call persist or merge on an entity manager, the entity manager recognizes the state of the entities at this time. Changes which are made later to the entities doesn't bother

[jboss-user] [EJB 3.0] - Re: UserTransactions and merge

2006-11-16 Thread hoeft
I have forgotten something: You forgot to mark the boundries of the transaction scope correctly. The transaction scope is importend, because the entitymanager persists the entities if he leaves the transaction scope. The boundries are marked by the begin() and commit() method. You forgot the

[jboss-user] [Messaging, JMS JBossMQ] - Clean up queues

2006-09-11 Thread hoeft
Hi! My software is tested with unit-tests. After each test, some queues are containing testmessages. I would like to delete these messages automatically after each test. Exist a way to do this? The javax.jms.Destination doesn't have a removeAllMessages method :-(. Thank you M. Schwartau

[jboss-user] [EJB 3.0] - Clean up queues or topics

2006-09-11 Thread hoeft
Hi! My software is tested with unit-tests. After each test, some queues are containing testmessages. I would like to delete these messages automatically after each test. Exist a way to do this? The javax.jms.Destination doesn't have a removeAllMessages method :-(. Thank you M. Schwartau

[jboss-user] [EJB 3.0] - Get MBean reference

2006-09-11 Thread hoeft
Hi! One of my stateless session beans must call a method on a MBean. Is it possible to inject a reference to that MBean into my stateless session bean? I tried this, but it doesn't work :-(: | public class My implements MyMBean { | public ObjectName preRegister(MBeanServer server,

[jboss-user] [EJB 3.0] - MDB deployment problem

2006-07-17 Thread hoeft
Hi! I'm getting an error message if I deploy my MDB. I'm have got an error since I declared some activation properties in a deployment descriptor. The MDB-Code: | @MessageDriven(activationConfig = | { | @ActivationConfigProperty(propertyName=destinationType,