Hi everybody,
I working with Eclipse Helios, m2eclipse Maven plugin and Glassfish plugin.
I edited the "pom.xml" file so that I can get the DerbyClient and the JPA Persistence classes.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/P...
Somebody asked this question on the Hibernate forums and I'm linking to it here because I have the same question. Nobody seemed to be of any help there so I'm hoping this might be more useful.
Here it is:
Question on Hibernate forum
Thanks.
...
I'm using Hibernate 3.5.2-FINAL with annotations to specify my persistence mappings. I'm struggling with modelling a relationship between an Application and a set of Platforms. Each application is available for a set of platforms.
From all the reading and searching I've done, I think I need to have the platform enum class be persisted a...
Hi, I'm starting with VB.NET and NHibernate but i'm getting this exception:
NHibernateConfigException was unhandled
An exception occurred during configuration of persistence layer.
This is the code
Dim configuration As New Cfg.Configuration()
configuration.Configure()
configuration.AddFile("person.hbm.xml")
Dim f...
All the examples of DCI I've seen seems to be based on the object as the ultimate holder of information, and the transaction boundaries are defined inside the methods.
I would like to see an example of a persistent application, where there is some sort of persistence layer, i.e. where there can be duplicate object copies of the underlyi...
Hi there,
I'm developing an application that would need to persist data locally in Android devices. I'm aware that Android provides two packages for database persistence, the normal "java.sql" and the "android.database.sqlite"? Which one is used more for persistence? I suppose that "android.database.sqlite" is the implementation of "jav...
I'm looking for a framework (open source) for distributed computing for .Net / Mono that is not simply task-based but supports persistence of distributed tasks.
The project at hand is a complex system simulation which needs to be distributed into smaller independent "subsimulations". These subsimulations will keep running for a long tim...
I'm on the process of designing a web application based on Google App Engine (Java) platform. I'm basically from relational database world and I'm trying to understand how to use the persistence that GAE provides.
So my questions is, in RDBMS, I can easily access my data without going through my application. i.e, I can use an SQL clien...
Hi all,
I'm wondering what the best feature(s) of the orm framework you use and what features you find yourself using most?
What is the reason you chose the framework you use?
I'm just trying to compare them and wondered if any offers advantages over the other. (it's all very well googling this but you can't beat first hand user exper...
Hello everybody!
I have problems in mapping custom collection with JPA (Hiberante provider). For example when I am using object with attribute
List<Match> matches;
with
<one-to-many name="matches">
<cascade>
<cascade-all />
</cascade>
</one-to-many>
in my ORM file, it is allright; But if I replace "List matches;" ...
Hi,
Is there a way to persist an string from an online click once application. I saw something about isolated file storage as answers to other questions. But none of them specify if it works also for online apps (I really don't think so).
I think that something like a cookie will work. Is there something like that available?
The appli...
My application uses large trees of domain objects and for most of these objects I'd like to persist some basic information (updatedby, modified time, etc.). I have already added these properties & columns to my application.
I was about to code the setting of these values in all the various constructors, etc. when it occurred to me tha...
Hi all,
I want Hyperjab3 to persist with association like ManyToOne.
Here is my example :
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element name="id" type="xsd:string" minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:appinfo>
<hj:id/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:...
Using datastore framework of appengine, what's the pythonic way to make persistent a {}?
...
I am newbie with JPA. I'm trying to run some sample code using JPA but I get the following exception:
javax.persistence.PersistenceException: No Persistence provider for EntityManager named MyJPAApplicationPU
I put my exception message here,
INFO: Could not find any META-INF/persistence.xml file in the classpath
javax.persistence.Per...
Hi all
I'm trying to use NHibernate in a project. All my domain tables include a 'CreatedBy' field which is a foreign key to the Users table. Since this is an ASP.NET app, the only information I have about the user at the time of saving is the username, from the cookie.
What is the best approach for obtaining the user ID and saving it ...
I think that it makes sense for the entity variables to not be final as they are synchronized with the DB, but why for class and methods ??
...
Hi!
I wonder about a good way to have an EntityManager in each Bundle. Or how to use correctly JPA in an OSGi program.
Actually, I've one main bundle that loads the persistence.xml file and instanciates the EntityManager. After, my main bundle gives the instance of Entity manager to the other bundles via the services. So I use the powe...
I am using Java SE and learning about the use of a persistence API (toplink-essentials) to manage entities in a Derby DB. Note: this is (distance learning) university work, but it is not 'homework' this issue crops up in the course materials.
I have two threads operating on the same set of entities. My problem is that every way I have t...
I have a java app running on JDK 1.6.0_17 on Linux. I'm using ehcache 2.1.0, with a very simple ehcache.xml file:
<diskStore path="/ext/ehcache"/>
<defaultCache
overflowToDisk="true"
diskPersistent="true"
maxElementsInMemory="10000"
maxElementsOnDisk="1000000000"
eternal="true">
</defaultCache>
In my java app...