Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.2 final
-
Fix Version/s: 2.0-M2
-
Component/s: Persistence
-
Labels:None
-
Environment:MacOS X 10.5, java 1.5
Description
Trying to persist property of type java.util.Map as Hibernate's 'serializable' like this:
class Domain {
String name
String ser
Map<String, String> map
static mapping =
{ ser type:'serializable' map type:'serializable' }}
Property 'ser' is mapped correctly to DB like 'varbinary(255)' when using HSQLDialect. I would expect that property 'map' should be mapped to DB similar to 'ser' as some variant of 'varbinary'. But it is mapped using join table domain_map.
create table domain (id bigint generated by default as identity (start with 1), version bigint not null, ser varbinary(255) not null, name varchar(255) not null, primary key (id));
create table domain_map (map bigint, map_idx varchar(255), map_elt varbinary(-1) not null);
How can I persist instances of java.util.Map as hibernate's 'serializable'?
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Graeme Rocher [ graemerocher ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Workflow | jira [ 34544 ] | Grails [ 40888 ] |
| Workflow | Grails [ 40888 ] | Copy of Grails [ 48318 ] |
| Workflow | Copy of Grails [ 48318 ] | Grails [ 55728 ] |
| Workflow | Grails [ 55728 ] | Grails2 [ 63273 ] |
| Assignee | Graeme Rocher [ graemerocher ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Fix Version/s | 2.0-M2 [ 12805 ] | |
| Resolution | Fixed [ 1 ] | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Workflow | Grails2 [ 63273 ] | jira [ 77324 ] |
| Workflow | jira [ 77324 ] | Grails2 [ 79866 ] |
| Workflow | Grails2 [ 79866 ] | jira [ 88643 ] |
| Workflow | jira [ 88643 ] | Grails2 [ 96812 ] |