This document discusses designing social media platforms to encourage civic engagement among youth. It reviews literature on how youth conceptualize and participate in civic issues online. The study defined civic engagement as supportive, deliberative, and collaborative practices in social media in response to societal needs. Interviews with youth found they prefer informal engagement in flexible contexts like Facebook over formal sites. Youth are motivated by peer-oriented causes, visibility, excitement from pictures/videos, and desire for quick feedback. The document provides recommendations for design including context, flexibility, updated content, peer relevance, control, sharing, visibility, and feedback.
This document discusses designing social media platforms to encourage civic engagement among youth. It reviews literature on how youth conceptualize and participate in civic issues online. The study defined civic engagement as supportive, deliberative, and collaborative practices in social media in response to societal needs. Interviews with youth found they prefer informal engagement in flexible contexts like Facebook over formal sites. Youth are motivated by peer-oriented causes, visibility, excitement from pictures/videos, and desire for quick feedback. The document provides recommendations for design including context, flexibility, updated content, peer relevance, control, sharing, visibility, and feedback.
7. insert update ( 1)
? HibernateڳʼΣͻӳļӳ
ϢΪеij־ûԤ S QL
insert 䡢 update䡢 delete OI D
־ûʵ select 䡣
S algrade£
INSERT INTO SALGRADE(GRADE, LOSAL, HISAL) VALUES(?, ?, ?);
UPDATE SALGRADE SET LOSAL=?, HISAL=?;
DELETE FROM SALGRADE WHERE ID=?;
SELECT GRADE,LOSAL,HISAL FROM SALGRADE WHERE GRADE=?;
www.sodi.com.cn
8. insert update ( 2)
? S QL еʺŴ JDB C P reparedS tatement е
Щ S QL 䶼 S essionFactory ĻУ
ִ S ession save( ) update( ) delete( ) load( ) ʱ
ӻҵӦԤ S QL 䣬ٰѾIJ
ֵ S QL С
? HQL QB C ѯӦ select ִиôʱ
̬ܶɡ
? ڶ - ϵӳļУͨ < class> < property>
ԪصһЩԣԿ insert updateɣ
ο Hibernate_Referenceж / ϵݿӳ
( B asic O/R Mapping) һ¡
www.sodi.com.cn
15. increm ʶ
ent
? Hibernateʱȡ
ֵÿβһʱֵ
1 ɵıʶΪ long short int
? ÷Χ
? increm ɱʶĻƲڵײݿϵ
ent
ͳеݿϵͳ
? ֻе HibernateӦý̷ͬһݿ
ϣڼȺ²Ƽʹ
? OI D Ϊ long int short ͣ OI D Ϊ
ͣʱ׳
I dentifierGenerationE xception
www.sodi.com.cn
16. identity ʶ
? I dentity ʶɵײݿɱ
ʶҪײݿ⽫ΪԶ
ֶ͡
? ÷Χ
? identity ɱʶĻڵײݿϵͳ
ˣҪײݿϵͳ֧Զֶ
֧͡Զֶ͵ݿ
DB 2 MyS QL MS S QL S erver S ybase HS QLDB
I nformix ȡ
? OI D Ϊ long int short ͣ OI D Ϊ
ͣʱ׳
I dentifierGenerationE xception
www.sodi.com.cn
17. sequenceʶ
? sequenceʶõײݿṩ
ɱʶ
? ÷Χ
? sequenceɱʶĻڵײݿϵͳ
УˣҪײݿϵͳ֧С֧
еݿ Oracle DB 2 S A P DB
P ostpreS QL ȡ
? OI D Ϊ long int short ͣ OI D Ϊ
ͣʱ׳
I dentifierGenerationE xception
www.sodi.com.cn
18. hilo ʶ
? hilo ʶ Hibernateһ hign/low
ɱʶݿضֶ
ȡ hign ֵͨӱصĵֵΨһ
? ÷Χ
? hilo ɱʶĻƲڵײݿϵͳ
еݿϵͳ
? OI D Ϊ long int short ͣ OI D Ϊ
ͣʱ׳
I dentifierGenerationE xception
? hign/low 㷨ɵıʶֻһݿб֤Ψ
һ
www.sodi.com.cn
19. uuid ʶ
? uuid ʶʹһ 128 λȫΨһ
ʶ Universally Unique I dentifier UUI D 㷨
ַ͵ıʶ UUI D I P
ַ JVM Ϣͬһʱе
лΨһġ
? ÷Χ
? uuid ʶ Hibernateά uuid ֵ
ڵײݿʵϸڣ
⡣
? UUI D ֵȫģݿУ
ȷ¼˳
? ȫֵҪΨһʶʱʹ
ڲʹ JNI ǰµʵ
ˡ
www.sodi.com.cn
20. guid ʶ
? guid ʶõײݿ guid ĺ
ַ͵ıʶ
? ÷Χ
? guid ɱʶĻڵײݿϵͳ
ˣҪײݿ֧ guid Ŀǰ֧ guid
ݿУ Oracle MS S QL S erver MyS QL S ybase
ȡ
? UUI D ֵȫģݿУ
ȷ¼˳
? ȫֵҪΨһʶʱʹ
www.sodi.com.cn
22. nativeʶ
? nativeʶݵײݿԶɱ
ʶ֧ѡʹ identity sequence
hilo ʶ nativeԶжϵײݿ
ṩɱʶĻơ
? ÷Χ
? nativeܸݵײݿϵͳͣԶѡ
ʵıʶ˺ʺݿƽ̨
ͬһ HibernateӦҪӶݿϵͳij
? OI D Ϊ long int short ͣ OI D Ϊ
ͣʱ׳
I dentifierGenerationE xception
www.sodi.com.cn