public class WordService extends BaseService<WordModel>
sessionFactory| Constructor and Description |
|---|
WordService() |
| Modifier and Type | Method and Description |
|---|---|
List<WordModel> |
getCollection() |
WordModel |
save(WordModel wordModel)
It saves the word entity but if the word is already exits it increases the weight of the word.
|
add, findEntityByAttribute, getCollection, getEntityById, setSessionFactory, updatepublic WordModel save(WordModel wordModel)
save in class BaseService<WordModel>wordModel - Any entity model with Hibernate annotations.Copyright © 2015. All rights reserved.