Title: Working with computer ebean only · Issue #80 · playframework/play-java-ebean-example · GitHub
Open Graph Title: Working with computer ebean only · Issue #80 · playframework/play-java-ebean-example
X Title: Working with computer ebean only · Issue #80 · playframework/play-java-ebean-example
Description: Hello, Can you help me please to use only computer ebean instead of ( computer , company ) ! public CompletionStage
Open Graph Description: Hello, Can you help me please to use only computer ebean instead of ( computer , company ) ! public CompletionStage
X Description: Hello, Can you help me please to use only computer ebean instead of ( computer , company ) ! public CompletionStage<Result> create() { Form<Computer> computerForm = formFactory.form(Com...
Opengraph URL: https://github.com/playframework/play-java-ebean-example/issues/80
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Working with computer ebean only","articleBody":"Hello,\r\n\r\nCan you help me please to use only computer ebean instead of ( computer , company ) !\r\n\r\n\r\n```\r\n\r\n public CompletionStage\u003cResult\u003e create() {\r\n Form\u003cComputer\u003e computerForm = formFactory.form(Computer.class);\r\n\t\tComputer computer = computerForm.get();\r\n \r\n// I don't know how to change this only for compter or may be remove it ?!!!\r\n return companyRepository.options().thenApplyAsync((Map\u003cString, String\u003e companies) -\u003e { \r\n\t\r\n return ok(views.html.createForm.render(computerForm)); }, httpExecutionContext.current());\r\n }\r\n\r\n \r\n public CompletionStage\u003cResult\u003e save() {\r\n Form\u003cComputer\u003e computerForm = formFactory.form(Computer.class).bindFromRequest();\r\n if (computerForm.hasErrors()) {\r\n\r\n// How to change this line for computer only\r\n return companyRepository.options().thenApplyAsync(companies -\u003e {\r\n\r\n return badRequest(views.html.createForm.render(computerForm));\r\n }, httpExecutionContext.current());\r\n }\r\n\r\n Computer computer = computerForm.get();\r\n return computerRepository.insert(computer).thenApplyAsync(data -\u003e {\r\n flash(\"success\", \"Computer \" + computer.name + \" has been created\");\r\n return GO_HOME;\r\n }, httpExecutionContext.current());\r\n }\r\n```","author":{"url":"https://github.com/HannahJSwystun","@type":"Person","name":"HannahJSwystun"},"datePublished":"2018-10-15T11:28:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/80/play-java-ebean-example/issues/80"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b8c152c-9cb7-ed40-9730-a64151d7c534 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81A8:11902D:C11C9:1029F2:6980EF96 |
| html-safe-nonce | 418487d56e4d51056f489c5ee5860db5523ae5278be471d3ca9f39ece3eb7011 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUE4OjExOTAyRDpDMTFDOToxMDI5RjI6Njk4MEVGOTYiLCJ2aXNpdG9yX2lkIjoiOTA5MDM1OTgwNDg2NTYwNTUyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26eb20ed3305d021d4f76c8c7aae62e30627f69047fd0436ee3adabdb171a4ab |
| hovercard-subject-tag | issue:370118713 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/playframework/play-java-ebean-example/80/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6930f21bd496b57421291f054b70b06ede9544241d897e6d57dd6c06255a4ad/playframework/play-java-ebean-example/issues/80 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6930f21bd496b57421291f054b70b06ede9544241d897e6d57dd6c06255a4ad/playframework/play-java-ebean-example/issues/80 |
| og:image:alt | Hello, Can you help me please to use only computer ebean instead of ( computer , company ) ! public CompletionStage |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HannahJSwystun |
| hostname | github.com |
| expected-hostname | github.com |
| None | cdeab60e665cf158f971f0b4329c9f8b2796cdbc03304a1f04aaa07e81bd107f |
| turbo-cache-control | no-preview |
| go-import | github.com/playframework/play-java-ebean-example git https://github.com/playframework/play-java-ebean-example.git |
| octolytics-dimension-user_id | 319107 |
| octolytics-dimension-user_login | playframework |
| octolytics-dimension-repository_id | 21886481 |
| octolytics-dimension-repository_nwo | playframework/play-java-ebean-example |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21886481 |
| octolytics-dimension-repository_network_root_nwo | playframework/play-java-ebean-example |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | abc7f12a1279d78087ac998532a2819581bc3ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width