-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Active Record Pattern #79 #3087
base: master
Are you sure you want to change the base?
Conversation
active-record/database.db
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file necessary, or is created on demand?
active-record/pom.xml
Outdated
<!-- <optional/> Removed --> | ||
<version>1.18.30</version> <!-- Added --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the version from the parent
active-record/pom.xml
Outdated
<dependency> | ||
<groupId>org.xerial</groupId> | ||
<artifactId>sqlite-jdbc</artifactId> | ||
<version>3.46.0.0</version> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using H2 database is highly recommended (see https://github.com/iluwatar/java-design-patterns/wiki/10.-Technology-selections)
* Find a user by ID. | ||
*/ | ||
|
||
public static User findById(int id) throws SQLException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps return Optional<User>
?
update-header.sh
Outdated
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
# | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this script is necessary?
Thanks for the cr! Will look into it |
…atterns into activerecord merging prepullrequest changes
Quality Gate passedIssues Measures |
Adds active record pattern
Close #79