The mappedByelement in the one-to-one mapping of the employeeattribute dịch - The mappedByelement in the one-to-one mapping of the employeeattribute Việt làm thế nào để nói

The mappedByelement in the one-to-o

The mappedByelement in the one-to-one mapping of the employeeattribute of ParkingSpaceis
needed to refer to the parkingSpaceattribute in the Employeeclass. The value of mappedByis the name of the attribute in the owning entity that points back to the inverse entity.
The two rules, then, for bidirectional one-to-one associations are the following:
• The @JoinColumnannotation goes on the mapping of the entity that is mapped to
the table containing the join column, or the owner of the relationship. This might
be on either side of the association.
• The mappedByelement should be specified in the @OneToOneannotation in the
entity that does not define a join column, or the inverse side of the relationship.
It would not be legal to have a bidirectional association that had mappedByon both sides, just as it would be incorrect to not have it on either side. The difference is that if it were absent on both sides of the relationship, the provider would treat each side as an independent unidirectional relationship.
This would be fine except that it would assume that each side was the owner and that each had a join column.
Bidirectional many-to-one relationships are explained later as part of the discussion of
multivalued bidirectional associations.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
MappedByelement trong lập bản đồ-một của employeeattribute ParkingSpaceis cần thiết để đề cập đến parkingSpaceattribute trong các Employeeclass. Giá trị của mappedByis tên thuộc tính trong các tổ chức sở hữu mà chỉ quay lại các thực thể nghịch đảo. Hai quy tắc, sau đó, cho Hiệp hội-một hai chiều là như sau: • @JoinColumnannotation đi vào lập bản đồ các thực thể mà là ánh xạ tới bảng chứa các cột tham gia, hoặc chủ sở hữu của mối quan hệ. Điều này có thể ở hai bên của các Hiệp hội. • MappedByelement nên được xác định trong @OneToOneannotation trong các thực thể không xác định một cột tham gia, hoặc mặt nghịch đảo của mối quan hệ. Nó sẽ không được pháp lý để có một hiệp hội hai chiều có mappedByon cả hai bên, cũng giống như nó sẽ là không chính xác để không có nó trên cả hai phía. Sự khác biệt là nếu nó đã vắng mặt trên cả hai mặt của mối quan hệ, các nhà cung cấp nào điều trị mỗi bên là một mối quan hệ unidirectional độc lập. Điều này sẽ là tốt, ngoại trừ rằng nó sẽ giả định rằng mỗi bên là chủ sở hữu và mỗi người có một cột tham gia. Hai chiều nhiều một mối quan hệ được giải thích sau đó như là một phần của cuộc thảo luận của Hiệp hội đặc hai chiều.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
The mappedByelement in the one-to-one mapping of the employeeattribute of ParkingSpaceis
needed to refer to the parkingSpaceattribute in the Employeeclass. The value of mappedByis the name of the attribute in the owning entity that points back to the inverse entity.
The two rules, then, for bidirectional one-to-one associations are the following:
• The @JoinColumnannotation goes on the mapping of the entity that is mapped to
the table containing the join column, or the owner of the relationship. This might
be on either side of the association.
• The mappedByelement should be specified in the @OneToOneannotation in the
entity that does not define a join column, or the inverse side of the relationship.
It would not be legal to have a bidirectional association that had mappedByon both sides, just as it would be incorrect to not have it on either side. The difference is that if it were absent on both sides of the relationship, the provider would treat each side as an independent unidirectional relationship.
This would be fine except that it would assume that each side was the owner and that each had a join column.
Bidirectional many-to-one relationships are explained later as part of the discussion of
multivalued bidirectional associations.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: