|
From: <leg...@at...> - 2003-08-05 15:02:15
|
The following comment has been added to this issue:
Author: Max Rydahl Andersen
Created: Tue, 5 Aug 2003 10:01 AM
Body:
That get's my vote ;)
I will get similar needs in the near future ;)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-232
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-232
Summary: Custom types cannot be uses for ids with indentity and sequence generators
Type: Improvement
Status: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.0rc2
Assignee:
Reporter: James Lewis
Created: Tue, 5 Aug 2003 9:37 AM
Updated: Tue, 5 Aug 2003 9:37 AM
Environment: Any environment. MySql DB
Description:
All of my persistent objects have a custom primary key object.
For instance, my Part object has a PartID as the key. This allows me to perform compile time type checking in my service layer.
I was ably to create a UserType that converted the coulmn type of integer to PartID. No problem, it worked great. However, the IdentityGeneratorFactory throw an exception because my custom types return PartID.class as the return type. The IdentityGeneratorFactory's 'get' method only takes classes that are of type Integer.class, Long.class, and Short.class. The API should be changed so that the get method returns a Serializable instead of a Number, and takes a Type instead of a class. This would allow the IdentityGeneratorFactory to return the custom class type.
What are your thoughts.
James
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-06 00:47:14
|
The following comment has been added to this issue:
Author: Gavin King
Created: Tue, 5 Aug 2003 7:46 PM
Body:
Interesting.
Is that all that would be required?? It kinda looks like it.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-232
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-232
Summary: Custom types cannot be uses for ids with indentity and sequence generators
Type: Improvement
Status: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.0rc2
Assignee:
Reporter: James Lewis
Created: Tue, 5 Aug 2003 9:37 AM
Updated: Tue, 5 Aug 2003 9:37 AM
Environment: Any environment. MySql DB
Description:
All of my persistent objects have a custom primary key object.
For instance, my Part object has a PartID as the key. This allows me to perform compile time type checking in my service layer.
I was ably to create a UserType that converted the coulmn type of integer to PartID. No problem, it worked great. However, the IdentityGeneratorFactory throw an exception because my custom types return PartID.class as the return type. The IdentityGeneratorFactory's 'get' method only takes classes that are of type Integer.class, Long.class, and Short.class. The API should be changed so that the get method returns a Serializable instead of a Number, and takes a Type instead of a class. This would allow the IdentityGeneratorFactory to return the custom class type.
What are your thoughts.
James
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-10 05:12:14
|
The following comment has been added to this issue:
Author: Gavin King
Created: Sun, 10 Aug 2003 12:11 AM
Body:
Ugh. I had to roll back this change. It broke on some platforms.
This is not going to be possible, w/o changes to the UserType and CompositeUserType interfaces.
So its out :(
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-232
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-232
Summary: Custom types cannot be uses for ids with indentity and sequence generators
Type: Improvement
Status: Closed
Priority: Minor
Resolution: FIXED
Project: Hibernate2
Components:
core
Fix Fors:
2.1 beta 1
Versions:
2.0rc2
Assignee: Gavin King
Reporter: James Lewis
Created: Tue, 5 Aug 2003 9:37 AM
Updated: Fri, 8 Aug 2003 11:40 PM
Environment: Any environment. MySql DB
Description:
All of my persistent objects have a custom primary key object.
For instance, my Part object has a PartID as the key. This allows me to perform compile time type checking in my service layer.
I was ably to create a UserType that converted the coulmn type of integer to PartID. No problem, it worked great. However, the IdentityGeneratorFactory throw an exception because my custom types return PartID.class as the return type. The IdentityGeneratorFactory's 'get' method only takes classes that are of type Integer.class, Long.class, and Short.class. The API should be changed so that the get method returns a Serializable instead of a Number, and takes a Type instead of a class. This would allow the IdentityGeneratorFactory to return the custom class type.
What are your thoughts.
James
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-10 10:30:14
|
The following comment has been added to this issue:
Author: Max Rydahl Andersen
Created: Sun, 10 Aug 2003 5:29 AM
Body:
Could we try to find an alternative solution for this one ?
I've got a similar problem with legacy generated version/timestamps (it's a byte[8]) that would be great if Hibernate could integrate with.
A last resort would be to add ExtendedUserType or something.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-232
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-232
Summary: Custom types cannot be uses for ids with indentity and sequence generators
Type: Improvement
Status: Closed
Priority: Minor
Resolution: FIXED
Project: Hibernate2
Components:
core
Fix Fors:
2.1 beta 1
Versions:
2.0rc2
Assignee: Gavin King
Reporter: James Lewis
Created: Tue, 5 Aug 2003 9:37 AM
Updated: Fri, 8 Aug 2003 11:40 PM
Environment: Any environment. MySql DB
Description:
All of my persistent objects have a custom primary key object.
For instance, my Part object has a PartID as the key. This allows me to perform compile time type checking in my service layer.
I was ably to create a UserType that converted the coulmn type of integer to PartID. No problem, it worked great. However, the IdentityGeneratorFactory throw an exception because my custom types return PartID.class as the return type. The IdentityGeneratorFactory's 'get' method only takes classes that are of type Integer.class, Long.class, and Short.class. The API should be changed so that the get method returns a Serializable instead of a Number, and takes a Type instead of a class. This would allow the IdentityGeneratorFactory to return the custom class type.
What are your thoughts.
James
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|