Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Nguyen Van Chuong
What is uuid_ ?
March 2, 2012 7:25 AM
Answer

Nguyen Van Chuong

Rank: New Member

Posts: 13

Join Date: January 23, 2012

Recent Posts

hi every body !
i don't know uuid_ . help me emoticon
thanks .

example:
 1
 2CREATE TABLE `bookmarksfolder` (
 3[size=6] [b]`uuid_` varchar(75) collate utf8_unicode_ci default NULL,[/b][/size]
 4  `folderId` bigint(20) NOT NULL,
 5  `groupId` bigint(20) default NULL,
 6  `companyId` bigint(20) default NULL,
 7  `userId` bigint(20) default NULL,
 8  `userName` varchar(75) collate utf8_unicode_ci default NULL,
 9  `createDate` datetime default NULL,
10  `modifiedDate` datetime default NULL,
11  `resourceBlockId` bigint(20) default NULL,
12  `parentFolderId` bigint(20) default NULL,
13  `name` varchar(75) collate utf8_unicode_ci default NULL,
14  `description` longtext collate utf8_unicode_ci,
15  PRIMARY KEY  (`folderId`),
16  UNIQUE KEY `IX_DC2F8927` (`uuid_`,`groupId`),
17  KEY `IX_2ABA25D7` (`companyId`),
18  KEY `IX_7F703619` (`groupId`),
19  KEY `IX_967799C0` (`groupId`,`parentFolderId`),
20  KEY `IX_28A49BB9` (`resourceBlockId`),
21  KEY `IX_451E7AE3` (`uuid_`)
22) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Ram Manusani
RE: What is uuid_ ?
March 2, 2012 9:29 AM
Answer

Ram Manusani

Rank: Regular Member

Posts: 124

Join Date: October 27, 2011

Recent Posts

It is a Universal unique Identifier, UUID (or GUID) is a unique identifier that can be created without a central authority. UUIDs can be used if a sequence number is not good enough. This implementation is thread safe and very fast.
Nguyen Van Chuong
RE: What is uuid_ ?
April 6, 2012 11:04 AM
Answer

Nguyen Van Chuong

Rank: New Member

Posts: 13

Join Date: January 23, 2012

Recent Posts

thaks you emoticon
Danny Stevens
RE: What is uuid_ ?
August 7, 2012 10:53 PM
Answer

Danny Stevens

Rank: New Member

Posts: 20

Join Date: September 14, 2011

Recent Posts

Ram Manusani:
It is a Universal unique Identifier, UUID (or GUID) is a unique identifier that can be created without a central authority. UUIDs can be used if a sequence number is not good enough. This implementation is thread safe and very fast.



If you are copying a user or group from one Liferay server to another would a uuid be certain to be unique in the new Liferay server?
Brian Kim
RE: What is uuid_ ?
August 8, 2012 6:49 PM
Answer

Brian Kim

LIFERAY STAFF

Rank: Expert

Posts: 319

Join Date: August 16, 2004

Recent Posts

Danny Stevens:
Ram Manusani:
It is a Universal unique Identifier, UUID (or GUID) is a unique identifier that can be created without a central authority. UUIDs can be used if a sequence number is not good enough. This implementation is thread safe and very fast.


If you are copying a user or group from one Liferay server to another would a uuid be certain to be unique in the new Liferay server?


Your question isn't really clear. What do you mean by "copying"? In what way is the "one Liferay server" related to the "new Liferay server"?