All Questions
48 questions
9
votes
2
answers
948
views
JavaFX app with User Authentication and SQL Persistence
This JavaFX program is just supposed to allow a user to register a username and password and then have it stored in an SQL database.
There's been some criticism that it's not clean, readable or ...
3
votes
1
answer
183
views
Getting all column vs. table regardless of alias using JSqlParser
I have been trying to get all column vs. table regardless of alias used, for example, assume this query
...
0
votes
1
answer
71
views
Evaluate my program with Java Mail + Sql + Swing
I'm 16 years old and no one to help me, no one to give any advice or constructive criticism, I'm aimless. I'll leave the link to my last code (github), a program that sends an email to everyone ...
2
votes
1
answer
147
views
program that sends an email to everyone registered in the database
I'm 16 years old and no one to help me, no one to give any advice or constructive criticism, I'm aimless. I'll leave the link to my last code (github), a program that sends an email to everyone ...
6
votes
1
answer
97
views
Delete Entry from SQL-Table and confirm the deletion to a CommandSender in a spigot plugin
I'm working on a spigot plugin, that deals with messages to from players on a server to the admin's. It's the same plugin this question relates to: SQL structure to save coordinates for spigot plugin ....
5
votes
1
answer
2k
views
Generic solution to Hibernate's CriteriaQuery
I've created a little class which helps me to generalize many query cases. I have a DbService and couple methods in it. Can you please take a look at it and share some criticism? The usage of that ...
7
votes
4
answers
3k
views
Simplifying constructing native SQL query with nested if-else's
I've a method which is used to build a native sql query. I've 4 String builder as input and based on different conditions, I need to build my query.
Here is the code
...
2
votes
1
answer
563
views
Generating and storing a unique salt in Oracle database using Java
This is my account table:
...
3
votes
1
answer
254
views
SafeBlockPopulator to ensure neighboring chunks are generated before population
Bukkit/CraftBukkit/Spigot are Minecraft server extenders that allow for creating and using plugins. A particular type of plugin is a generator, which creates the game world. Generators operate chunk-...
3
votes
1
answer
945
views
Static class for database access Java JDBC
I'm writing a small program to store data in a database (a discord bot mainly). I know cleaner ways of using dependency injections and DAO exist, but I haven't written a DAO (or the user class) and ...
1
vote
2
answers
2k
views
Using decorator and strategy pattern for dynamically generating SQL queries
This is a link to my application that actually runs on the design specified in the image.
The idea behind the image is that the SubjectInfoViewer behaves as the ...
3
votes
1
answer
246
views
ToDoApp - adding users, managing tasks, getting tasks
I've implemented a console ToDo application. I would like to hear some opinions about it, what should I change etc.
About project:
It is intended to manage everyday tasks. Application contains:
...
-3
votes
1
answer
64
views
Is there a different way of implementing this program without using nested while loop? [closed]
Presently my program is working properly, but how do i implement this program without using nested while loop(one while loop within another while loop).This is a kids way of programming and my office ...
1
vote
3
answers
4k
views
Login module with JDBC
I made simple login module that is responsible for handling registration, and signing in my application. How can I improve this code? Are there any conventions for this case?
The idea is to create ...
1
vote
3
answers
183
views
Resume code of a SQL selecting function in Java
I am new to Java so I started to learn by doing. Right now I am developing a store management software. I'm trying to do it the right and clean way, so I'm looking for some reviews of my code. The ...