Hibernate is a collection of related projects enabling developers to utilize POJO-style domain models in their applications in ways extending well beyond Object/Relational Mapping.
0
votes
0answers
5 views
Spring autowiring scanning only test files
During unit tests with JUnit, Spring autowiring is only working for files in:
src/test/org/baudo
But not files in:
src/main/org/baudo
So when I test my DAO that autowires a sessionFactory ...
0
votes
1answer
9 views
JPA : Count with predicate on MapJoin
I have a problem with a criteria count query with a MapJoin !
In fact it doesn't work !
Here is my code :
public long countItems(final String title, final String url) {
CriteriaBuilder builder = ...
0
votes
1answer
14 views
Hibernate persists referenced entities without cascade=PERSIST
I have a table of children each of which can have a set of different toys. There is a table that stores the code of each available toy.
@Entity
public class Child implements Serializable {
@Id
...
1
vote
1answer
14 views
Spring MVC and JUnit: Failed to load ApplicationContext
In order to test my DAO and automatically autowire my objects, I created the following test class in JUnit:
@RunWith( SpringJUnit4ClassRunner.class )
...
0
votes
1answer
10 views
Spring HibernateTemplate autocommit false
I need to fetch 1 lakh record from one table and insert into another table in batch manner.I am using Spring3 hibernate template for inserting.i need to commit only after every 100 records but ...
1
vote
0answers
9 views
Spring Hibernate integration with maven and mysql
I need to have a project with spring hibernate and mysql, the homepage works fine (it even gets data out from mysql and displays it) but when i click the add/edit or delete button i get a 404 error ...
0
votes
0answers
8 views
Unable to instantiate default tuplizer
I m very new to Hibernate & JSF. I have followed online tutorial http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/ but i m getting error as
Jul 13, 2013 12:52:18 PM ...
1
vote
0answers
7 views
JPA Hibernate bulk/batch update in Spring MVC
I am new to Spring MVC and not much idea with JPA as well. all I want to do is to update a list of records and its working well when I loop through the list and call update on DAO.
But I dnt want to ...
0
votes
0answers
11 views
Save changes to database vaadin
I have an application which has a table and when you click on an item in the table it fills in a group of textfields with its data (FieldGroup), and then you have the option of saving the changes I ...
0
votes
0answers
3 views
Multiple DTO definitions in hibernate.cfg.xml
How do I define multiple DTO classes in hibernate.cfg.xml?
So far, I tried
<mapping class="DTO.ThisClass; DTO.ThatClass" />
and
<mapping class="DTO.*" />
within the ...
1
vote
1answer
18 views
java.lang.NoClassDefFoundError: org/hibernate/type/StandardBasicTypes - What could be the reason?
I have the following entity with Joda time.
@Column(name = "CLASS_START_DT")
@Type(type = "org.joda.time.contrib.hibernate.PersistentDateTime")
private DateTime classStartDate;
@Column(name = ...
0
votes
0answers
6 views
ids for this/ class must be manually/ assigned before calling save()
i want to save a member in my database. I annotated my id such as:
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "id",unique=true, nullable = false)
...
0
votes
1answer
13 views
Does the “mapping” tag in hibernate.cfg.xml have an equivalent property name in hibernate.properties?
I thought that hibernate.cfg.xml and hibernate.properties were effectively
equivalent, and therefore, could be used interchangeably. Is this true?
If it is true, then what is the equivalent property ...
1
vote
1answer
15 views
Remove Proxy Code from Entity during Serialization
I have a server and clients that are both Java-based and communicate with each other over RMI. The server's data access layer is implemented with JPA and Hibernate and entities are often used as ...
-4
votes
1answer
13 views
failed to lazily initialize a collection of role: com.isamm.Model.Client.commandes, no session or session was closed [on hold]
this the code that is in the buttons that i can add Command for Client with some product
` Session session1 = HibernateUtil.getSessionFactory().openSession() ;
// Start ...