key « Data Type « JPA Q&A





1. PersistentMap.get returns null for key it has    forum.hibernate.org

Newbie Joined: Sun Sep 25, 2011 4:05 pm Posts: 12 So this is driving me just crazy, I'm calling the get function on a map and it always returns null. I have verified that the map indeed contains my key, and that the entry indeed has a non-null value. I also verified that the hashCode and the equals functions are working ...

2. Principal keys with Dates    forum.hibernate.org

Author Message roychav Post subject: Principal keys with Dates Posted: Tue Oct 21, 2003 3:48 pm Newbie Joined: Mon Oct 20, 2003 12:18 pm Posts: 12 Location: Mexico Its possible create principal keys like dates. I have the next code: Code: /** * @hibernate.id * generator-class="assigned" ...

3. many-to-many trouble with a string key    forum.hibernate.org

Hi ! I've trouble with a many-to-many association. I have two table with a varchar(32) key and when i try to create the many-to-many table with hibernator, i've got the error : create table User (User_Nom VARCHAR(32) not null, User_Pass VARCHAR(32) not null, primary key (User_Nom)) create table Role (User_Nom VARCHAR(32) not null, primary key (User_Nom)) create table user_role (User_Nom VARCHAR(255) ...

5. many to one with 0 rather than null as empty key    forum.hibernate.org

I am accessing third party data base with a many to one(child - parent) relationship. The column that references the relationship is set to 0 as a default rather than leaving it null. When hibernate sees non-null key it tries to access the record and it fails with UnresolvableObjectException: No row with the given identifier exists: 0, How can I make ...

6. Oracle + Date + Timestamp + Key    forum.hibernate.org

I have a table that has a composite primary key with one of the fields that is of type Date. The mapping configuration works, but when I execute a query in the table occurs the following error: Connot perform lookups on timestamps. I'm using hibernate 3.0 and Oracle 9.0.2 and the Oracle9Dialect. Why the Date field is using org.hibernate.type.TimestampType instead of ...

7. Adding a not-null attribut to a key tag    forum.hibernate.org

Hello I'm using hibernate 3.0 and xdoclets and trying to get a XML mapping that looks like: Code: .... ...

8. Is the date key causing this?    forum.hibernate.org

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.bkv.search.objectmodel.AggregateSale#com.bkv.search.objectmodel.AggregateSale@6754d6] The composite key of this table is reportDate and buyID. BuyId is a primary key of another table. Report date is a date/time field in sql server. I set the date as a java.util.Date in my java bean. Am I getting this error because of the field type for the date?





10. Null foreing key    forum.hibernate.org

Hibernate version:3 Hello all, I need to have a one-to-many relation between 2 tables. the "parent" table is: Code:

11. Null foreing key on many-to-one    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: CATEGORY: Code:

12. Null Foriegn Key On Merge    forum.hibernate.org

Hello, We are noticing some strange behavior with Hibernate's JPA. There is an object called Customer composing a List of PaymentMethod instances with a OneToMany annotation specifying a join column. PaymentMethod is abstract, extended by a CreditCard object using a discriminator. Now we can add CreditCard instances to a Customer, persist it, remove items from the list, add new CreditCard instances, ...