i knew that was coming, the standard OSS community response. "why don't you do it" =)
so the issue is not with you guys but with those php kids, big surprise.
http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=507324
an end might be in sight, when 3.0 is officially released this
needs to be upgraded. i just wanted to make sure someone out there was aware of the poor quality of this forum (not the users but the code) and that they are at least investigating a fix.
i'm just in a really shitty mood today & i don't feel like working on anything so i'm going to download the code and see how bad it really is. i need a good laugh
while i've got you're attention, is there a way to write a custom Id generator class that
Code:
if (type of pk extends Number) {
generator type = auto
} else if (type of pk is String) {
generator type = assigned
}
I'm trying to make this work,
Code:
@MappedSuperclass
public abstract class AbstractEntity<PK extends Serializable> implements Serializable {
@Id @GenerateIntelligently
protected PK id;
}
I've seen a few people do this sort of thing before, but the PK type is not generic, always Long. I would be fine with that but i have one application that is very cool because it uses assigned Strings for the PK. i just need to find out how to have some flexibility & intelligence in the generation strategy, any ideas?