Loading src/main/java/es/redmic/db/maintenance/administrative/model/ThemeInspire.java 0 → 100644 +57 −0 Original line number Diff line number Diff line package es.redmic.db.maintenance.administrative.model; /*- * #%L * DB * %% * Copyright (C) 2019 - 2021 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.NamedQuery; import javax.persistence.Table; import es.redmic.db.common.model.DomainModel; /** * The persistent class for the themeinspire database table. * */ @Entity @Table(name="themeinspire") @NamedQuery(name = "ThemeInspire.findAll", query = "SELECT a FROM ThemeInspire a") public class ThemeInspire extends DomainModel implements Serializable { private static final long serialVersionUID = 1L; @Column(length = 50) private String code; public ThemeInspire() { super(); } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } } src/main/java/es/redmic/db/maintenance/administrative/repository/ThemeInspireRepository.java 0 → 100644 +31 −0 Original line number Diff line number Diff line package es.redmic.db.maintenance.administrative.repository; /*- * #%L * DB * %% * Copyright (C) 2019 - 2021 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.springframework.stereotype.Repository; import es.redmic.databaselib.common.repository.BaseRepository; import es.redmic.db.maintenance.administrative.model.ThemeInspire; @Repository public interface ThemeInspireRepository extends BaseRepository<ThemeInspire, Long> { } src/main/java/es/redmic/db/maintenance/administrative/service/ThemeInspireService.java 0 → 100644 +39 −0 Original line number Diff line number Diff line package es.redmic.db.maintenance.administrative.service; /*- * #%L * DB * %% * Copyright (C) 2019 - 2021 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import es.redmic.db.maintenance.administrative.model.ThemeInspire; import es.redmic.db.maintenance.administrative.repository.ThemeInspireRepository; import es.redmic.models.es.maintenance.administrative.dto.ThemeInspireDTO; import es.redmic.db.common.service.ServiceRWImpl; @Service public class ThemeInspireService extends ServiceRWImpl<ThemeInspire, ThemeInspireDTO> { @Autowired public ThemeInspireService(ThemeInspireRepository repository) { super(repository); } } Loading
src/main/java/es/redmic/db/maintenance/administrative/model/ThemeInspire.java 0 → 100644 +57 −0 Original line number Diff line number Diff line package es.redmic.db.maintenance.administrative.model; /*- * #%L * DB * %% * Copyright (C) 2019 - 2021 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.NamedQuery; import javax.persistence.Table; import es.redmic.db.common.model.DomainModel; /** * The persistent class for the themeinspire database table. * */ @Entity @Table(name="themeinspire") @NamedQuery(name = "ThemeInspire.findAll", query = "SELECT a FROM ThemeInspire a") public class ThemeInspire extends DomainModel implements Serializable { private static final long serialVersionUID = 1L; @Column(length = 50) private String code; public ThemeInspire() { super(); } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } }
src/main/java/es/redmic/db/maintenance/administrative/repository/ThemeInspireRepository.java 0 → 100644 +31 −0 Original line number Diff line number Diff line package es.redmic.db.maintenance.administrative.repository; /*- * #%L * DB * %% * Copyright (C) 2019 - 2021 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.springframework.stereotype.Repository; import es.redmic.databaselib.common.repository.BaseRepository; import es.redmic.db.maintenance.administrative.model.ThemeInspire; @Repository public interface ThemeInspireRepository extends BaseRepository<ThemeInspire, Long> { }
src/main/java/es/redmic/db/maintenance/administrative/service/ThemeInspireService.java 0 → 100644 +39 −0 Original line number Diff line number Diff line package es.redmic.db.maintenance.administrative.service; /*- * #%L * DB * %% * Copyright (C) 2019 - 2021 REDMIC Project / Server * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import es.redmic.db.maintenance.administrative.model.ThemeInspire; import es.redmic.db.maintenance.administrative.repository.ThemeInspireRepository; import es.redmic.models.es.maintenance.administrative.dto.ThemeInspireDTO; import es.redmic.db.common.service.ServiceRWImpl; @Service public class ThemeInspireService extends ServiceRWImpl<ThemeInspire, ThemeInspireDTO> { @Autowired public ThemeInspireService(ThemeInspireRepository repository) { super(repository); } }