public class TextService extends BaseService<TextModel>
sessionFactory| Constructor and Description |
|---|
TextService() |
| Modifier and Type | Method and Description |
|---|---|
TextModel |
add(TextModel textModel)
It creates a single new entity in the database and retrieves the created object.
|
findEntityByAttribute, getCollection, getEntityById, save, setSessionFactory, updatepublic TextModel add(TextModel textModel)
BaseServiceadd in class BaseService<TextModel>textModel - Any entity model with Hibernate annotations.Copyright © 2015. All rights reserved.