-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Active Record Pattern #79 #3087
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
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
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Adds active record pattern
Close #79