Created
February 23, 2011 23:09
-
-
Save wfaler/841402 to your computer and use it in GitHub Desktop.
entitytransformer.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lets register a StringValueTransformer for a Car domain object | |
val carDao = new JpaDao[Car, Long] | |
val transformer = new EntityTransformer[Car, Long](carDao) | |
TransformerRegistry.registerSingletonTransformer(carDao.entityType, transformer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment