Skip to content
Snippets Groups Projects
Commit df856c5c authored by Fakhri Mahendra's avatar Fakhri Mahendra
Browse files

Merge branch 'main' of gitlab.informatika.org:IF3110-2023-02-40/edujin-soap

parents 0acac38c ad2ffec7
No related merge requests found
......@@ -48,8 +48,9 @@ public class ArticleRepository extends BaseRepository {
CriteriaQuery<Article> criteria = builder.createQuery(Article.class);
criteria.from(Article.class);
List<Article> data = session.createQuery(criteria).getResultList();
String title = data.get(page.intValue() - 1).getTitle();
tx.commit();
return data.get(page.intValue() - 1).getTitle();
return title;
} catch (Exception e) {
if (tx != null) {
tx.rollback();
......
......@@ -5,5 +5,5 @@ db.url = jdbc:mysql://soap-db:3306/edujin-soap
server.host=0.0.0.0
server.port=8082
edujin_app.url=http://localhost:8080
edujin_rest.url=
edujin_app.url=http://localhost:5173
edujin_rest.url=http://localhost:8081
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment