I'm using JPA Toplink-essential and developing RESTful web app.
Here is one thing to mention first.
Not using JTA
So my persistences.xml is defined not to use JTA.
…
We have a legacy project in this using oracle essential with version 1.0.0 for persistence. Can you please provide how to give the hint to the query for increasing the JDBC fetch size and how we verify the fetch size in logs?
In Spring, is there a way I can access the properties of the unitofwork across the DAO's?
Let's assume I have a service layer:
public Class A {
public doSave (){
impl.setUnitOfWork(details);
…
I make use of: NetBeans IDE 6.7.1, GlassFish v2.1, Oracle 10g XE, JAVA 6 SE, JAVA 5 EE.
I have problem with an @ManyToMany annotation:
@ManyToMany(fetch=FetchType.EAGER)
@JoinTable(name="CUST_RENT_MOVIE", joinColumns={@JoinColumn(name="CUST_ID")},…
This may be related to my question from a few days ago, but I'm not even sure how to explain this part. (It's an entirely different parent-child relationship.)
In my interface, I have a set of attributes (Attribute) and valid values (ValidValue) for…
This is in continuation of this question
I have namedQuery as
select new Emp(o.empNo, o.empName) from Emp o
and constructor defined as
public Emp(String empNo, String empName) {
this.empNo= empNo;
this.empName= empName;
}
I am getting…
I'm working for a Swing Project and the technologies used are netbeans with Toplink essentials, mysql.
The Problem I'm facing is the entity object dosn't get updated after insertions take place while calling a getter collection of the foreign key…
It is continues of question ( struts 2 bean is not created )
I'm using struts2 + toplink in my very simple web application under Tomcat.
On the page I would like use iteration tag. That is why I've declared some factory (SomeFactory) that resolves…
I am trying to create a spring 4 project from scratch and maven is unable to resolve the dependency of com.oracle.toplink:toplink:jar:10.1.3
The following are the repositories that I have set in the pom.xml
…
I have application written in Java that is using EJB3 + Toplink. I'm using Glassfish as my app. server.
Sometimes the data that has been cached is old and I need to clear my cache manually. I know that we can set time to clear it, but I would like…
I am trying my hands on the Netbeans E-Coomerce tutorials
from this page. It makes use of both JPA and ORM
This is a Java EE project named the Affablebean deployed to the GlasFish server.
As part of the tutorials I created a database model with…
I have project use EJB 3.0 and implement Toplink framework for model layer.
When using EJBQL to process data, I see it seems have some limitation:
It cannot process datatime such as find a part of date such as day, month or year
It cannot find…
I have an object "Instance" with another object "Course" inside. When trying to persist a new Instance object, I get the following error if Course is null:
java.lang.IllegalStateException: During synchronization a new object was found through a…
I have a struts 2 application and a toplink persistence provider running on tomcat 6.0.20 and a MySql 5.1.38 server on a GNU/Linux machine. After committing the data the when i go to retrieve it the data it has disappeared from the database.
I do a…
I have a query:
select p from Product p
Which gives me the results I expect, but one of the columns (let's call it massiveDescription) is big, and since I'm querying the full list of products I want to exclude it.
I added…