Code Monkey home page Code Monkey logo

Comments (14)

Luckychips avatar Luckychips commented on September 4, 2024

@ethdemor 테스트

from raptoz.

m0er avatar m0er commented on September 4, 2024

@Luckychips 나도 테스트.

by mOer

On Sat, Jul 7, 2012 at 5:12 PM, Luckychips
[email protected]
wrote:

@ethdemor 테스트


Reply to this email directly or view it on GitHub:
https://github.com/project-raptoz/raptoz/issues/12#issuecomment-6821439

from raptoz.

Luckychips avatar Luckychips commented on September 4, 2024

@ethdemor

update 쓰려면 MongoTemplate autowire 받아야 쓸 수 있는건가?
CrudRepository는 update가 안보이네?

autowire 받는다면 어디서 받아야 되는거여??

from raptoz.

m0er avatar m0er commented on September 4, 2024

원하는 값 변경하고 save()하면 업데이트돼.
MongoTemplate은 서비스에서 @Autowired 받으면 될 것 같은데?

by mOer's iPhone

      1. 21:22 [email protected] 작성:

update 쓰려면 MongoTemplate autowire 받아야 쓸 수 있는건가?
CrudRepository는 update가 안보이네?

autowire 받는다면 어디서 받아야 되는거여??


Reply to this email directly or view it on GitHub:
https://github.com/project-raptoz/raptoz/issues/12#issuecomment-6830846

from raptoz.

Luckychips avatar Luckychips commented on September 4, 2024

@ethdemor

User 클래스에서 tags 초기화 필요없냐?
tag 추가하는 부분에서 NullPointerException 나거든?
Tag 클래스 문제는 아닌 것 같고, User 쪽 같은데...
내가 생각하기에는 초기화 해줘야 할거 같은데 님 생각은 어떰?

from raptoz.

m0er avatar m0er commented on September 4, 2024

@Luckychips DB에 tag가 없으면 널이긴 하지. 태그 save할 때 널체크 하는게 좋지 않을까 싶기도 하네. Tag 컨트롤러 만드는거지?

by mOer's iPhone

      1. 0:30 [email protected] 작성:

@ethdemor

User 클래스에서 tags 초기화 필요없냐?
tag 추가하는 부분에서 NullPointerException 나거든?
Tag 클래스 문제는 아닌 것 같고, User 쪽 같은데...
내가 생각하기에는 초기화 해줘야 할거 같은데 님 생각은 어떰?


Reply to this email directly or view it on GitHub:
https://github.com/project-raptoz/raptoz/issues/12#issuecomment-6849961

from raptoz.

m0er avatar m0er commented on September 4, 2024

생각해보니 user setter에서 null 체크해도 괜찮을 것 같네

by mOer's iPhone

      1. 0:30 [email protected] 작성:

@ethdemor

User 클래스에서 tags 초기화 필요없냐?
tag 추가하는 부분에서 NullPointerException 나거든?
Tag 클래스 문제는 아닌 것 같고, User 쪽 같은데...
내가 생각하기에는 초기화 해줘야 할거 같은데 님 생각은 어떰?


Reply to this email directly or view it on GitHub:
https://github.com/project-raptoz/raptoz/issues/12#issuecomment-6849961

from raptoz.

Luckychips avatar Luckychips commented on September 4, 2024

@ethdemor

Tag 컨트롤러가 굳이 필요할까?
MyPage에서 처리할 수 있을 거 같은데..
그래서 일단 Tag 서비스 만들고 있어.

from raptoz.

m0er avatar m0er commented on September 4, 2024

@Luckychips 태그 등록, 제거, 카운팅 같은게 전부 MyPageController 쪽에 있으면 안맞지 않을까? User 뿐만 아니라 Post에서도 태그를 사용하기도 하고.

from raptoz.

Luckychips avatar Luckychips commented on September 4, 2024

@ethdemor

만약 Post에서 태그 사용한다고 하면 TagService 사용하면 되지 않나?
컨트롤러가 새로 있다고 한다면 그거랑 바인딩되는 뷰도 새로 있어야 될거 같은데??

from raptoz.

m0er avatar m0er commented on September 4, 2024

@Luckychips 왜 그 오픈소스 랭킹 사이트처럼 태그별 사용 현황 같은거 보려면 Ajax 호출해야 할 것 같아서. 물론, 서비스야 가져다 사용하면 그만이긴 하지.

컨트롤러 있다구 꼭 뷰가 있어야할 필요성 보다는 SRP 생각해서 모아두려고 하는거지 뭐. 그리고 태그 추가/삭제를 꼭 마이페이지에서 할 것 같지는 않고 이를테면 Post 수정 페이지에서 태그 삭제하면 Ajax 요청해야 하잖아.

by mOer's iPhone

      1. 14:41 [email protected] 작성:

@ethdemor

만약 Post에서 태그 사용한다고 하면 TagService 사용하면 되지 않나?
컨트롤러가 새로 있다고 한다면 그거랑 바인딩되는 뷰도 새로 있어야 될거 같은데??


Reply to this email directly or view it on GitHub:
https://github.com/project-raptoz/raptoz/issues/12#issuecomment-6867439

from raptoz.

Luckychips avatar Luckychips commented on September 4, 2024

@ethdemor

아하 ㅋㅋ
오키. 일단 서비스 만들어놓고 컨트롤러 만들어야겠넹

from raptoz.

Luckychips avatar Luckychips commented on September 4, 2024

{ "_id" : ObjectId("500a480d3004c45dda568cc7"), "_class" : "com.raptoz.tag.Tag", "value" : "web", "count" : NumberLong(1) }
{ "_id" : ObjectId("500a485625df555e263a4098"), "count" : NumberLong(1), "value" : "Framework" }

"_class" 가 있고 없고의 차이가 어떤건지 정확하게 잘 모르겠네?

from raptoz.

m0er avatar m0er commented on September 4, 2024

인터페이스 사용할 때는 클래스 정보를 넘겨주지 않지.

몽고템플릿 쓸 때는 도메인 객체 클래스를 꼭 넘겨줘야 하고.

디비에서 도메인 클래스에 매핑할 때 인터페이스는 도메인 클래스 정보가 없으니까(파라미터로 안넘겨주니까) 같이 저장해 주는거지.

그러고보니 Tag upsert 할 때 클래스 정보 저장 안할텐데 꺼내오는데 문제 없나 모르겠네.

by mOer's iPhone

      1. 21:29 [email protected] 작성:

{ "_id" : ObjectId("500a480d3004c45dda568cc7"), "_class" : "com.raptoz.tag.Tag", "value" : "web", "count" : NumberLong(1) }
{ "_id" : ObjectId("500a485625df555e263a4098"), "count" : NumberLong(1), "value" : "Framework" }

"_class" 가 있고 없고의 차이가 어떤건지 정확하게 잘 모르겠네?


Reply to this email directly or view it on GitHub:
https://github.com/project-raptoz/raptoz/issues/12#issuecomment-7176578

from raptoz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.