Phil Niksen

Ranch Hand
+ Follow
since Mar 06, 2018
Phil likes ...
Java Linux Netbeans IDE
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Phil Niksen

I'm using Hibernate.The error is

java.lang.ClassNotFoundException: Could not load requested class : text
2 weeks ago
Hello...

I am creating a Web Chat application and I want to keep the content of messages into a column in my database.I think the best practice is to use "text" type so I tried to use this annotation:



but I got an error.Is there a way to store more than 255 characters into database?
2 weeks ago
I have my model classes plus dto classes, do I need anything more to persist into database.
3 weeks ago
After I added persistence I don't get any error, the server starts but nothing is written in my database
3 weeks ago
Still doesn't work...

probably the error is something bigger.One thing that bugs me is that use both application.properties and persistence.xml.The connection properties I added are the same but do I need to use both?
3 weeks ago
I have included dependencies in my pom.xml file.
Yes, it is.
The url is correct.
4 weeks ago
One problem I currently have is that error:


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).




I 've put the dependency of mariadb in pom.xml and I put this on an application.properties file

spring.datasource.url=jdbc:mysql://localhost:3306/webchat
spring.datasource.username=****
spring.datasource.password=****
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.jpa.hibernate.ddl-auto=create-drop



Do I need anything more?
4 weeks ago
Thanks for the reply...My application structure for the backend is this:

-DAO
----Enums
----Models
----Repositories
-Service
-Web
----ExceptionHandlers
----Controllers
----Dto
----Validators

I am not sure if I used best practice.I have designed a first db schema with three entities (Users, Rooms and Messages).Rooms to users (one to many), users to messages (one to many), rooms to messages (one to many) is the relation I'm thinking.

4 weeks ago
Avoid front-end=avoid javascript :P

So I can use JSP with Spring Boot, Websockets and mySQL?
4 weeks ago
Yes, I will use websockets although I'm not that familiar with that.I 've done a project with Spring Boot before, a bit simple though with Angular as Front and mariadb for database.I really enjoyed working with Hibernate and sql db so I wanna use it again.I didn't put a hand to the front end though, so I'm thinking if I can somehow avoid it with the use of JSP.
4 weeks ago

Phil Niksen wrote:Web application



I am thinking something like slack...
1 month ago
I want to save messages and also have registration for the users so I need a database.I don't care about performance because it's a thesis project (nothing commercial) so I think it's better to use something that I'm familiar with.
1 month ago
Hello,

I want to create a chat application as a part of a project.I don't care much about the performance so I decided to use mysql database (mariadb) because I'm more familiar.Thing is I am not sure about the rest of the stack.Is JSP a good option?Or I should go with a front end technology (Angular) plus Java?
1 month ago
Thanks for the great replies.Looks like all of them are useful.