Issue Details (XML | Word | Printable)

Key: CSC-530
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Patrik Nordwall
Reporter: Patrik Nordwall
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fornax Cartridge Sculptor

Possibility to skip generation of composite key inner class

Created: 29/Jun/10 09:34 PM   Updated: 07/Jul/10 10:47 PM
Component/s: Generator
Affects Version/s: None
Fix Version/s: 1.9.0

Time Tracking:
Not Specified


 Description  « Hide
Add generator property to generate equals/hashCode for composite keys without using key class

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Patrik Nordwall made changes - 29/Jun/10 09:34 PM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Repository Revision Date User Message
Fornax SVN #6902 Tue Jun 29 21:52:29 CEST 2010 patrik_nordwall CSC-530: Possibility to skip generation of composite key inner class
Files Changed
MODIFY /trunk/cartridges/sculptor/fornax-cartridges-sculptor-generator/src/main/resources/templates/DomainObject.xpt
MODIFY /trunk/cartridges/sculptor/fornax-cartridges-sculptor-generator/src/main/resources/extensions/properties.ext
MODIFY /trunk/cartridges/sculptor/fornax-cartridges-sculptor-generator/src/main/resources/default-sculptor-generator.properties

Patrik Nordwall added a comment - 29/Jun/10 09:54 PM
Done

Added generator property that can be defined to skip generation of key class (default is still true):
generate.domainObject.compositeKeyClass=false

Patrik Nordwall made changes - 29/Jun/10 09:54 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Patrik Nordwall added a comment - 29/Jun/10 10:01 PM
Note: One drawback with not using key class is that findByKeys is not supported for composite keys.

Documented in Developer's Guide: http://fornax.itemis.de/confluence/display/fornax/7.+Developer's+Guide+(CSC)#7.Developer%27sGuide%28CSC%29-equalsandhashCode

Patrik Nordwall made changes - 07/Jul/10 10:47 PM
Status Resolved [ 5 ] Closed [ 6 ]