custom « Property « JPA Q&A





1. Defining custom properties on existing domain objects    forum.hibernate.org

Hi, I have a product that is used at a number of clients. I would like to add a feature to the application that allows clients to define custom properties on a few of the domain objects. Our domain model uses hibernate annotations and hibernate validator to provide all metadata to hibernate. I am not overly concerned with the ability to ...

2. Simple Custom Property Issues    forum.hibernate.org

Hi All, I am having some issues getting a simple custom property to work. The setup is that I've got a SQL Server table where I want to store a double in a column, and I want my Hibernate object to contain a custom class (called Decimal, my own Number subclass), which will get populated via Hibernate when reading/writing to this ...

3. how to deal with the property of custom type    forum.hibernate.org

Hi all, probably my question was answered before, but I could not find anything... I have the following property mapping: Currency is my own class: public class Currency { public Currency(long dollars, long cents) { if (dollars >= 0) { currencyCents = (dollars * 100) + Math.abs(cents); } else { currencyCents = (dollars * 100) - Math.abs(cents); ...

4. Custom Property Accessor    forum.hibernate.org

Hi, I'm trying to work with custom PropertyAccessor. But I encountered a behavior that I don't quite understand. I'll appreciate if anybody can explain to me: I have a class C with a list containing a couple of values that I want to store. While the value are stored vertically in memory(in a list) I would like to put them horizontally ...

5. org.hibernate.property.PropertyAccessor for custom lazy?    forum.hibernate.org

Hi all. I have an A POJO with a b attribute which is a collection (Set) of B elements. Like this: public class A { Set bs = new HashSet(); // other fields and property access methods } The size of a.bs set could be some millions so I load it in a LAZY mode, of course. I have annotated the ...