ページの作成

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
テンプレートを更新

23. 【Spring】@Tableアノテーションとは

本稿はSpringFrameworkの@Tableについて説明します。

@Tableとは

TableアノテーションはEntityクラスと対応するデータベースのテーブル名を指定する場合に使用します。

以下、Tableアノテーションの実装例です。

package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="user")
public class User {
    
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column
    private long id;
    
    @Column(length=50, nullable = false)
    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

 

子ページ
子ページはありません
同階層のページ
  1. @After
  2. @Autowired
  3. @Bean
  4. @Before
  5. @Column
  6. @Component
  7. @Configuration
  8. @Controller
  9. @Data
  10. @Entity
  11. @GeneratedValue
  12. @Id
  13. @Modifying
  14. @PathVariable
  15. @PropertySource
  16. @Repository
  17. @RequestBody
  18. @RequestMapping
  19. @ResponseBody
  20. @RestController
  21. @Service
  22. @SpringBootApplication
  23. @Table
  24. @Transactional
  25. @Value

最近の質問

コメント一覧

    No.479 | guest | 2022-11-28 21:22:13

    help write essay <a href=https://buytopessays.com>essay help live chat</a> buy an essay

    No.478 | guest | 2022-11-27 12:20:17

    essay writers cheap <a href=https://buy-eessay-online.com>i need help to write an essay</a> best custom essay site

    No.477 | guest | 2022-11-26 02:50:33

    essay writers wanted <a href=https://buyacademicessay.com>please help me write my essay</a> buy essay online for cheap

    No.476 | guest | 2022-11-24 18:31:35

    cheap essay writers <a href=https://bestsessays.org>write my history essay for me</a> help me with my essay

    No.475 | guest | 2022-11-23 10:08:07

    essay about community service <a href=https://bestessaysden.com>essay writing services singapore</a> the help by kathryn stockett essay

    No.474 | guest | 2022-11-22 01:53:00

    online essay editing service <a href=https://bestessayreviews.net>i need help with my essay</a> custom essay writing toronto

    No.473 | guest | 2022-11-20 18:09:47

    essay writers canada <a href=https://besteasyessays.org>essay proofreading services</a> buy essays online

    No.472 | guest | 2022-11-19 11:01:47

    help essays <a href=https://bestcampusessays.com>online essay help chat</a> cheap essay service

    No.471 | guest | 2022-11-16 11:44:56

    who can i pay to write my essay <a href=https://au-bestessays.org>essay help live chat</a> help with my essay

    No.470 | guest | 2022-10-13 23:18:32

    bunadisisj nsjjsjsisjsmizjzjjzjzz zumzsert

    No.468 | guest | 2022-10-13 13:17:55

    GTA movrs #1 is a company that pursues a single goal-customer satisfaction. This movers provide highly personalized service when moving.Moving company haas insurande coveragye of up to $1000000! The company has speciialized in local and long distance moving since 2001. Also cazrry out any moving needs, whether iit is international moving. Our team offers you the most modern and clean trucks, the mopst highhly qualified personnel and modern technologies to make your move easy and safe. besst movers gta

    No.467 | guest | 2022-10-12 01:54:29

    Car Shipping Toronto is a company that pursues a single goal-customer satisfaction. Our car transporter has a capacity for 10 cars(SUV). Our company has insurance coverage of up to $1000.000! We specialize in transporting cars and motorcycles throughout Canada and thee Unioted States. Due to the majy trucks in our company, we provide the most favoursble prices for moving your car or motorcycle. Our team started its work in 2001. Choosing our Vehicle movers Toronto, you get many years of experience, the most attractive prics and the hihest quality of service!cost off shipping a car across canada

    No.427 | guest | 2022-09-01 09:36:02

    bunadisisj nsjjsjsisjsmizjzjjzjzz zumzsert