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 :
= 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
= 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
| 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
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
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 :
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
___
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);
|
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
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
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
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
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
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
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
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
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,
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,
18 matches
Mail list logo