Tagged Questions
0
votes
0answers
4 views
Hibernate using a non-pk join column in @Formula annotation
I am trying to access a join column (the join is performed using @SecondaryTables annotation) in the @Formula annoation.
I have something like this
@Table(name="primary_table")
...
1
vote
2answers
17 views
Injection of autowired dependencies failed; Could not autowire field
I'm a newbie in Spring MVC and hibernate, I've been in a slump so i hope you guys can help.
Everytime i run i get the exception error in creating bean. i can't seem to find the correct answer in ...
1
vote
0answers
9 views
Spring Hibernate custom validators default message from property file
I've this custom spring hibernate validator and a tested message.properties file (it works) but I'm not able to set this part of code right: {EmailExists.user.default}... I mean, it doesn't get the ...
0
votes
0answers
8 views
Spring hibernate custom validator error with context.disableDefaultConstraintViolation
I'm trying to develop a custom constraint for field matching (as "retype password" for example);
Everything is ok except when I try to add the error to the jsp error field like this:
...
0
votes
2answers
26 views
Used heap size increasing continuous
I have jsf web application. I'm using jsf 2.1.9, hibernate 4.1.4, glassfish 3.1.2, primefaces 3.4.1. The problem is, used heap size is increasing slowly and after 2-3 days, reaches max heap size. then ...
2
votes
1answer
26 views
Hibernate Bulk loading from excel: suggestions for design or approach for better performance
I am using Spring MVC,Hibernate for my Web Application.I am loading the data from excel using Apache POI.I am successfully able to load the data,But I think that my Approach is not efficient in terms ...
0
votes
0answers
8 views
Support for negative ids/primary key in hibernate generators
I am using hibernate in my current project and I have a requirement that one of the tables must have a negative primary key. Right now we are using TableGenerator for ID generation in all our ...
0
votes
1answer
32 views
HIbernate many to one join criteria query
I have table1 with key_column as primary key. Table2 has key_column from table1 as foreign key. table2 has many to one relationship to table1.
I want to run a join query.
Select table1.*, table2.* ...
0
votes
1answer
39 views
One entity is saved, the other not - why?
I have two entities - IssueDTO and TicketDTO, almost identical. On the client side I read the entries for IssueDTO and TicketDTO then via RPC saved them in a database.
Presentation layer -
...
...
1
vote
2answers
21 views
Populate Dropdownlist with Database value in Struts 2, Hibernate
I am trying to populate a drop down list with value from a table . The page uses strust2 and hibernate to access database.
I can get to view the registration page (which contains the drop down which ...
0
votes
0answers
17 views
Spring Hibernate custom constraints error path
I created a hibernate custom constraint to match fields but I cannot display errors on the appropriate
FieldMatch
package org.andreadorigo.webapp.validators.costraints;
import static ...
1
vote
0answers
19 views
hibernate.hbm2ddl.auto doesn't work if value equals create-drop
I use hibernate in my application. At once I want to write tests. I take database with data. Before test database should be clear. I thought if I write
<prop ...
-4
votes
0answers
55 views
Exception in thread “main” java.lang.NullPointer [on hold]
guys error due to the statement SessionFactory sessionFactory = configuration.buildSessionFactory();
The method ...
0
votes
0answers
28 views
Grails - Hibernate mapping with self referenced table
I'm upgrade the grails version of my app from 1.3.7 to 2.2.4 and now a spiritual bug is haunting myself.
I have a self referenced entity like the small example below:
Class Employee {
Name name
...
0
votes
1answer
48 views
object is not save,delete or update in database without any error
I am using spring 3 with hibernate 3.1 integeration in myeclipse. The problem is that "student" instance is not save,update or delete in the database without no error or exception. But other function ...