CCM NG: Deleted obsolete file
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5709 8810af33-2d31-482b-a856-94f89814c4df
parent
9262b37012
commit
9a5aeab603
|
|
@ -1,48 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2015 LibreCCM Foundation.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
* MA 02110-1301 USA
|
||||
*/
|
||||
package org.libreccm.web;
|
||||
|
||||
import org.libreccm.portation.AbstractMarshaller;
|
||||
import org.libreccm.portation.Marshals;
|
||||
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:tosmers@uni-bremen.de>Tobias Osmers<\a>
|
||||
* @version created the 8/22/17
|
||||
*/
|
||||
@RequestScoped
|
||||
@Marshals(CcmApplication.class)
|
||||
public class ApplicationMarshaller extends AbstractMarshaller<CcmApplication> {
|
||||
private static final long serialVersionUID = -342978428750991072L;
|
||||
|
||||
@Inject
|
||||
private ApplicationRepository applicationRepository;
|
||||
|
||||
@Override
|
||||
protected Class<CcmApplication> getObjectClass() {
|
||||
return CcmApplication.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void insertIntoDb(CcmApplication portableObject) {
|
||||
applicationRepository.save(portableObject);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue