All Questions
9 questions
0
votes
1
answer
457
views
Sharing the transaction between multiple components
We are developing a java program which has lots of independent components(let's say A, B, C, D). We use Hibernate framework for database mapping. Some of them working on the same JVM process and some ...
0
votes
1
answer
146
views
AngularJS and Java communication
I've just started learning about software components but I'm completely new to this subject and I was asked to make an AngularJS application and at the same time manage the data with a hibernate ...
0
votes
1
answer
1k
views
Hibernate-search cannot find field in mapped component
I have a User class that contains an Address. I have mapped the Address as a component. The Address variable in User is defined as @IndexEmbedded and the Address class itself as @Embeddable. The user ...
0
votes
2
answers
947
views
How to force Hibernate to use left outer join on a component for a named query?
I try to force Hibernate to use a left outer join for my namedQuery. Unfortunatally it always generates aditionally an inner join, despite me explicitly telling him to use a left outer join.
My ...
1
vote
2
answers
506
views
How do you break a large java application into components?
I am writing a java web application using spring, hibernate and mysql. The applications is getting larger so I want to break it into smaller parts e.g. smaller projects, components or which ever way ...
1
vote
1
answer
642
views
tapestry component for one to many mapping
I have similar to scale to biological classification. I am looking for a tapestry component that can link them faster.
However I am limitied to tapestry 5.2.6.
@Entity
public class Species implements ...
1
vote
0
answers
570
views
My @Embedded Component is coming back null through Hibernate when it isn't null in the DB
I'm running into an issue reconstituting an object from the database using Hibernate. An @Embedded component is throwing a NullPointerException when it's being accessed for the class' hashCode() ...
1
vote
0
answers
851
views
Hibernate: Programmatically binding UserTypes on Components
I have several different UserTypes (org.hibernate.usertype.UserType) in the system. For this question I will focus on the fact that we use Joda time DateTime and its UserType, PersistentDateTime.
I ...
3
votes
3
answers
1k
views
Hibernate Component with Generics
Ok, this question is best explained in code. So will try to present the most succinct example I can.
Timestamped.java
@Embeddable
public class Timestamped<E> {
private E value;
private ...