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