I might have misused the EntityManager, thanks for noticing, I've previously used old JpaTemplate and JPA1.0 and haven't had a decent bite in JPA2.0 documentation yet, my bad.
So the transaction...
Type: Posts; User: fungin; Keyword(s):
I might have misused the EntityManager, thanks for noticing, I've previously used old JpaTemplate and JPA1.0 and haven't had a decent bite in JPA2.0 documentation yet, my bad.
So the transaction...
ok, so the interface hierarchy is quite complex, but here it is:
public interface GenericService<T, PK extends Serializable> {
@Transactional(readOnly = false, propagation =...
I do know what code tags are for, though from the amount of code psoted in raw text I understand precautions:)
test-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans...
I have some issues with transaction management and testing.
If inside the test I get to EMF and perform em = emf.createEntityManager and from obtained EntityManager i start the transaction...
at least your rows are inserted, mine won't even insert. Persist and merge won't throw any exceptions, transaction is commited but no inserts are made. Anyone knows why?
I have a similar problem and cannot find any accurate answer to it (search won't help, I cannot find answer in documentation too), so your help will be appreciated, though I understand I might miss...
I've recently switched to dm server 2.0 and have tried to configure datasource for one of the project modules as osgi service. I've used
<bean id="suDataSource"...
Did you try the following:
1. Before running the application right-click on the project and go to Google > Web Toolkit Setting. Ensure that you have Use Google Web Toolkit enabled and 'Use default...
I did test it with both and in fact I got it in firefox too, but only on startup (on page load), and error was only displayed in console, no sign of it in browser.
I was referring to the problem...
there seems to be an issue within chrome and this app - as I run it in chrome I get the mentioned error, but under firefox everything works fine.
A bit ironic that GWT app won't work properly in...
I wonder if anyone has solved that issue - I need to find out if any of fields that are bound to view have been modified (for example I have a form with a model object behind it and I want to check...
This might ba a bit lame but I'm experiencing some problems with joining hibernate mapped classes and web flow 2.0. When fetching object i get java.lang.ClassNotFoundException...
I have some problem with binding to a model (using Web Flow 2.0.8).
What I do is here:
<form:form modelAttribute="uploadDocumentsBean">
<c:forEach items="${uploadDocumentsBean.documents}"...
No answers there. Thank you for your help anyway.
the problem is I do have to use MVC+Web Flow and I am running out of time. I do understand basic concepts and I had no problems with that until I've tried to do what I've described above. Whatever I...
5 days of google'ing, hundreds of posts/pages read and still no answer, it seems to me that mvc declared bean while used as a model in a webflow might be inaccessible fo forEach statement and for...
I should use controller to add an MVC declared bean to one of flow scopes? I don't fully understand the question so maybe I'll just post the config xml's.
webflow-config.xml
<?xml...
This might sound a lame question but how do I refer to the beans I have declared in the MVC configuration file with <bean ... /> tag?
Can I use them directly with jstl core tags or do I have to use...
I am really sorry to double-post but due to some fatal mistake I've lost my working copy in which I have found the solution to the problem. Dudeto the fact that I worked late at night and was very...
ok, my fault, I have made some changes to the code and discovered that update of Web Flow library to 2.0.8 solves problem with mapping (thefre was an issue with using bean both as bind model and in...
FIXED!
OK, my fault, I have made some changes to the code and discovered that update of Web Flow library to 2.0.8 solves problem with mapping (thefre was an issue with using bean both as bind model...
should do the trick but it does not:/ maybe it has something to do with the use of WebFlow. All I am trying to get is a page looking like this:
Your diplomas:
First diploma teaser <edit>...
I have a bit of a problem with performing actions on bean properties. Here is the problem:
I have a class looking like this:
public class EducationBean implements Serializable {
private...