// Generated by hibernate/SpringHibernateDaoImpl.vsl in andromda-spring-cartridge on 09/18/2014 17:02:26-0400. /** * Example license header for Java files * * http://andromda.sourceforge.net/ */ /** * This is only generated once! It will never be overwritten. * You can (and have to!) safely modify it by hand. */ package org.andromda.test.5; /** * @see org.andromda.test.5.Car */ public class CarDaoImpl extends org.andromda.test.5.CarDaoBase { /** * {@inheritDoc} */ @Override protected boolean handleAllCarsAreRented() { // TODO implement public boolean handleAllCarsAreRented() return false; } /** * {@inheritDoc} */ @Override public void toCarDetails( org.andromda.test.5.Car source, org.andromda.test.5.CarDetails target) { // TODO verify behavior of toCarDetails super.toCarDetails(source, target); } /** * {@inheritDoc} */ @Override public org.andromda.test.5.CarDetails toCarDetails(final org.andromda.test.5.Car entity) { // TODO verify behavior of toCarDetails return super.toCarDetails(entity); } /** * Retrieves the entity object that is associated with the specified value object * from the object store. If no such entity object exists in the object store, * a new, blank entity is created */ private org.andromda.test.5.Car loadCarFromCarDetails(org.andromda.test.5.CarDetails carDetails) { // TODO implement loadCarFromCarDetails throw new UnsupportedOperationException("org.andromda.test.5.loadCarFromCarDetails(org.andromda.test.5.CarDetails) not yet implemented."); /* A typical implementation looks like this: if (carDetails.getId() == null) { return org.andromda.test.5.Car.Factory.newInstance(); } else { return this.load(carDetails.getId()); } */ } /** * {@inheritDoc} */ public org.andromda.test.5.Car carDetailsToEntity(org.andromda.test.5.CarDetails carDetails) { // TODO verify behavior of carDetailsToEntity org.andromda.test.5.Car entity = this.loadCarFromCarDetails(carDetails); this.carDetailsToEntity(carDetails, entity, true); return entity; } /** * {@inheritDoc} */ @Override public void carDetailsToEntity( org.andromda.test.5.CarDetails source, org.andromda.test.5.Car target, boolean copyIfNull) { // TODO verify behavior of carDetailsToEntity super.carDetailsToEntity(source, target, copyIfNull); } /** * {@inheritDoc} */ @Override public void toCarListItem( org.andromda.test.5.Car source, org.andromda.test.5.CarListItem target) { // TODO verify behavior of toCarListItem super.toCarListItem(source, target); } /** * {@inheritDoc} */ @Override public org.andromda.test.5.CarListItem toCarListItem(final org.andromda.test.5.Car entity) { // TODO verify behavior of toCarListItem return super.toCarListItem(entity); } /** * Retrieves the entity object that is associated with the specified value object * from the object store. If no such entity object exists in the object store, * a new, blank entity is created */ private org.andromda.test.5.Car loadCarFromCarListItem(org.andromda.test.5.CarListItem carListItem) { // TODO implement loadCarFromCarListItem throw new UnsupportedOperationException("org.andromda.test.5.loadCarFromCarListItem(org.andromda.test.5.CarListItem) not yet implemented."); /* A typical implementation looks like this: if (carListItem.getId() == null) { return org.andromda.test.5.Car.Factory.newInstance(); } else { return this.load(carListItem.getId()); } */ } /** * {@inheritDoc} */ public org.andromda.test.5.Car carListItemToEntity(org.andromda.test.5.CarListItem carListItem) { // TODO verify behavior of carListItemToEntity org.andromda.test.5.Car entity = this.loadCarFromCarListItem(carListItem); this.carListItemToEntity(carListItem, entity, true); return entity; } /** * {@inheritDoc} */ @Override public void carListItemToEntity( org.andromda.test.5.CarListItem source, org.andromda.test.5.Car target, boolean copyIfNull) { // TODO verify behavior of carListItemToEntity super.carListItemToEntity(source, target, copyIfNull); } }