บทความ

Jackson confused with bidirectional one-to-many relationship

I'm using jackson 1.9.2 with Hibernate/Spring MVC through MappingJacksonHttpMessageConverter. Jackson can not serialize bidirectional one-to-many relationship and makes an infinite loop. The classes I'm using are : Conversation which has a Set of SMS instances. Each SMS instance has a Set of PhoneNumbers Each PhoneNumber has a parent contact (this is the bidirectional many-to-one relationship) What I am trying to do is to serialize a conversation. If I don't use  @JsonManagedReference  and  @JsonBackReference  then jackson will crashe due to an infinite loop. But when I use them, the  Contact  doesn't get serialized into the  PhoneNumber . Class Contact { @JsonManagedReference List<PhoneNumber> phoneNumber ; } Class PhoneNumber { @JsonBackReference Contact contact; } The output is : { <--------------------- Conversation "id": 51, "smsSet": [ { "id": 53, "origin...

รวบรวม JAVA

JAVA String Format Convert String To Date Formatting Numeric Print Output JSTL <fmt:formatDate> Tag

รวบรวม .NET C#

001_ASP.NET(C#) การใช้งาน SqlDataReader กับ GridView 002_ASP.NET(C#) การเพิ่มข้อมูลลง Database ด้วยแบบ statement prepare 003_วิธีการอัปโหลดแฟ้มไปยังเว็บเซิร์ฟเวอร์ใน ASP.NET โดยใช้ Visual C# .NET 004_Foreach C# การวนลูปด้วยคำสั่ง foreach 005_Session ASP.NET C# การใช้งาน Session ASP.NET C# 006_Multiple File Upload ASP.NET C# การอัพโหลดรูปภาพแบบหลาย ๆ รูป 007_Upload รูปภาพ ASP.NET C# ด้วยคำสั่ง SaveAs 008_การอ้างอิง Controls จาก Parent Page ไปยัง Web User Control Form 009_ADO.NET Architecture 010_try, catch และ finally 011_การใช้งาน ASP.NET กับ Server & Client

รวบรวม SQLServer

โหลด SQL Server 2012 วิธีการติดตั้ง SQL Server Management Studio 2012 วิธีการสร้าง relationship diagram วิธีแก้ : แก้ไขตารางแล้ว save ไม่ได้ ต้องสร้างใหม่ - Saving changes is not permitted in SQL Server Management Studio SQL Server CONVERT() Function

รวบรวม Jquery

Jquery Download วิดีโอสอนพื้นฐานของ HTML CSS Javascript จาก Google sites.google.com/site/ntaweera/javascript document.write Javascript คืออะไร และวิํธีการใช้งาน window.history.back Javascript การย้อนกลับไปยังหน้าที่ผ่านมา การดักจับกดปุ่ม Enter Javascript ความแตกต่างของ .bind(), .live(), และ .delegate() isNaN(value); ใช้เช็คค่าว่าเป็นตัวเลขหรือไม่เป็น return เป็น true /false ajax post() และ get() jQuery การประยุกต์ใช้ AJAX ด้วย post() และ get() Ajax ง่ายๆ กับ jQuery Dialog Confirm select default selected value select readonly radio checked by value radio check/uncheck วิธีแก้ Datepicker Clone append element after first child get current date jquery.serializeJSON รวม plugin gallery slider รวม plugin gallery slider

รวบรวม Javascript

The History Object : ทำปุ่ม back, forward, go Window confirm() Method : alert confirm Substring

รวบรวม CSS

LESS CSS สอนเทคนิคเทพที่จะเปลี่ยนการเขียน CSS ของคุณ SASS คืออะไร? เทคนิคช่วยให้การเขียน CSS เป็นเรื่องง่าย ๆ ใช้กันทั่วโลก !!