list « POJO « JPA Q&A





1. Hibernate - how to create list of pojos?    stackoverflow.com

I am very new to Hibernate. I have MySQL database and mapped pojos. What should I do next? I know little bit LINQ to SQL from .NET, and it generates me ...

2. Serializing List of POJOs using Hibernate    stackoverflow.com

I have a Java class that is mapped to a database table using JPA. Inside this class I have a List<Code> that I need to store in database. So the Code ...

3. How to embed class within List in POJO?    forum.hibernate.org

I am using Hibernate 3 and all available Annotations. I really need an example on this as I have no idea how this is done and finally gave up after fiddling with it long enough. I have 2 Classes (ABC, TestSubClass). A List of TestSubClass is part of the ABC Class. Code: @Entity Public Class ABC { ...

4. POJO's with a List    forum.hibernate.org

Hi, I have Value Objects ( POJO ) that I return from my EJB tier to my web tier and I have List member in these POJO's. I'm using Hibernate to deal with these Lists in the database and I am bombing out when I go back to the web tier. It looks like the List object that Hibernate is subsituting ...

5. list-index problem: 2 lists in 1 POJO    forum.hibernate.org

Full stack trace of any exception that occurs: org.hibernate.HibernateException: null index column for collection: _2list.Service.inputParameter at org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(AbstractCollectionPersister.java:618) at org.hibernate.collection.PersistentList.readFrom(PersistentList.java:298) at org.hibernate.loader.Loader.readCollectionElement(Loader.java:674) at org.hibernate.loader.Loader.readCollectionElements(Loader.java:370) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:314) at org.hibernate.loader.Loader.doQuery(Loader.java:412) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218) at org.hibernate.loader.Loader.loadCollection(Loader.java:1434) at org.hibernate.loader.collection.OneToManyLoader.initialize(OneToManyLoader.java:111) at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:488) at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60) at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1430) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:176) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:48) at org.hibernate.collection.PersistentList.listIterator(PersistentList.java:267) at test.testAssociation.testAsso(testAssociation.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) ...