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