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, update
public TextModel add(TextModel textModel)
BaseService
add
in class BaseService<TextModel>
textModel
- Any entity model with Hibernate annotations.Copyright © 2015. All rights reserved.