1. Equality Comparison on a date attribute using Criteria forum.hibernate.orgHello all, I am very new to hibernate. I have a one-to-one relationship between two tables MASTER and ROSTER. I have correctly mapped a unidirectional one-to-one association from my persistent class Roster to Master. I need to search all Roster records by transaction_date property of Master. I have spent hours trying to search for an elegant way to do this query ... |
2. Mapping an Associative Table that has various attributes forum.hibernate.orgHi everyone, The problem I am having can be summarized as follows: I have a table USERS, a table MEDIA (where movies and books are stored) and an associative table called USER_MEDIA where I store if a USER has "seen" a MEDIA. On table USER_MEDIA I also need to store the latest rate of this media given by the user. The ... |
3. property is not mapped with formula attribute forum.hibernate.org |
4. Creating one to many relationship using class attributes forum.hibernate.orgHello. I'm pretty new to java development, and even more new to Hibernate, and could use some help figuring out a thing or two. I have had some difficulty finding info because I am using attributes in my java class to do the hibernate mapping, rather than doing the mapping in a mapping config file. This would appear to not be ... |
5. What is the annotation matching node attribute in hibernate? forum.hibernate.org |
6. attribute mappedBy forum.hibernate.org |
7. Attribute mapping for custom SQL output forum.hibernate.orgI am working on an existing domain model and using Hibernate Annotations. I have problem mapping an entity and need some help/inputs/ideas/suggestions. Here is the scenario, I have 4 tables: 1) Oraganization (Org_id(primary key), Org_num, Org_name, etc...) 2) Office (Off_id (primary key), Org_id, Off_name, etc...) 3) Service (Svc_id (primary key), Svc_desc) 4) Office_Service (Off_id, Svc_id) The issue is with mapping the ... |
8. [JPA] Declared metamodel attributes work fine BUT Inherited forum.hibernate.org |
9. Directly mapping collection size to attribute using count? forum.hibernate.orgA has a one-to-many relationship to B. Hence, class A has an attribute collectionOfB. Is there any way I could map "count B" to single attribute in A? The purpose would be to offer a shortcut to retrieve the number of associated Bs without loading the entire collection. Sometimes all I need is the count i.e. the collection size. I know ... |
10. ManytoMany with persistent attributes forum.hibernate.orgHi, I'm trying to do a many to many relationship, however, my table has some persistent attributes. Users (* id, name, login, password); Roles (* id, description); Permissions (* iduser, * idrole, candelete, canmodify, canupdate); I wish to use Hibernate Annotations and I haven't find another way to do this except to create Permissions like a persistent class and set a ... |
11. need help on formula attribute of property tag forum.hibernate.orgIs there a way to create a formula property mapping where I can pass runtime parameters to the formula? I want to call an oracle function that takes in a longitude and latitude and calculates the distance. Here is the mapping of the field: |
12. Attribute "note" must be declared for element type "property forum.hibernate.orgHello gurus....I have the following exception, while trying to read XML data Please suggest what would be wrong in my hbm. I have my test case runs fine if I remove node="....." attributes from my hbm. [2011-03-29 13:59:50,227] FATAL HIBService [ main] Hibernate initial session factory creation failed. org.hibernate.InvalidMappingException: Unable to read XML at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:101) at org.hibernate.cfg.Configuration.add(Configuration.java:513) at org.hibernate.cfg.Configuration.add(Configuration.java:509) at org.hibernate.cfg.Configuration.addFile(Configuration.java:504) ... |
13. Override Transient attributes forum.hibernate.orgHi, I have an Embeddable class which has 5 attributes. This class will be embedded in other classes. Some classes want to override only 1 field; some want to overrride 3 field. Is there a way in hibernate to Overrride a Transient attribute present in Embedded class? @AttributeOverride does not seem to do this. OR Can i somehow use AttributeOverride (or ... |
14. @Column optional attributes forum.hibernate.orghi, Now I'm wondering what function the optional attributes in the @Column annotation have. I always thought it was the first place to "throw an exception" if for example the length=xyz attribute for a String field is exceeded. But when I try to persist a pojo with a mapped field like this, nothing happens. The only exceptions that gets thrown is ... |
15. @Version Unchanged attributes version is increased forum.hibernate.orgHi, i've go a little problem with the @Versions annotation of hibernate(3.5.6 Final and jpa 2.0). In my program there is a customer with version, who has got an address with a version. If some value of the customer changes e.g. name the version of the customer is increased - good, but the version of the unchanged address is changed too ... |
16. repeated reads - returns object with null attributes. forum.hibernate.orgHibernate 3.3, my SQL 5. My app passes around the unique ID for a specific item in my DB. This means that some scenarios require me to retrieve the item 9(read by Id), make a decision basedon some attribute and call some other method passing the ID. once agin, that method retrievees the oriiginal object again by ID. - there are ... |
17. Attribute "order-by" must be declared for element type "many forum.hibernate.org |
18. element in configuration specifies no attributes(SOLVED) forum.hibernate.orgInitial SessionFactory creation failed.org.hibernate.MappingException: |
19. How to tell hibernate not to map an attribute[SOLVED] forum.hibernate.org |
20. usign the where attribute in the class element forum.hibernate.orgObject[] values = new Object[3]; values[0] = "published"; values[1] = new java.util.Date(); values[2] = new java.util.Date(); net.sf.hibernate.type.Type[] types = new net.sf.hibernate.type.Type[3]; types[0] = Hibernate.STRING; types[1] = Hibernate.DATE; types[2] = Hibernate.DATE; java.util.List playlists = (java.util.List)sess.filter(frame.getList(), "where this.status.name = ? and (this.showEdate is null or this.showEdate > ?) and (this.showSdate is null or this.showSdate <= ?) order by sort_order", values, types); |
21. Ignoring |