Package org.socialmusicdiscovery.server.business.model.core

Examples of org.socialmusicdiscovery.server.business.model.core.RecordingSessionEntity


    public RecordingSessionEntity create(RecordingSessionEntity recordingSession) {
        try {
            transactionManager.begin();
            recordingSession.setLastUpdated(new Date());
            recordingSession.setLastUpdatedBy(super.CHANGED_BY);
            RecordingSessionEntity createdEntity = super.createEntity(recordingSession);
            getRepository().refresh(createdEntity);
            return new CopyHelper().copy(createdEntity, Expose.class);
        }catch (RuntimeException e) {
            transactionManager.setRollbackOnly();
            throw e;
View Full Code Here


    public RecordingSessionEntity update(@PathParam("id") String id, RecordingSessionEntity recordingSession) {
        try {
            transactionManager.begin();
            recordingSession.setLastUpdated(new Date());
            recordingSession.setLastUpdatedBy(super.CHANGED_BY);
            RecordingSessionEntity updatedEntity = super.updateEntity(id, recordingSession);
            getRepository().refresh(updatedEntity);
            return new CopyHelper().copy(updatedEntity, Expose.class);
        }catch (RuntimeException e) {
            transactionManager.setRollbackOnly();
            throw e;
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.model.core.RecordingSessionEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.